Class PlatformAbstractionLayer
Internal framework class, business app developers should not use this class directly as it provides a lower-level services to the higher level code like Azos.Graphics.Canvas, Image etc. PAL provides process-global injection point for PAL. The injection of a concrete runtime is done at process entry point which is statically linked against the concrete runtime library (such as .NET Framework or .NET Core).
Inheritance
Inherited Members
Namespace: Azos.Platform.Abstraction
Assembly: Azos.dll
Syntax
public static class PlatformAbstractionLayer
Properties
FileSystem
Abstracts functions related to working with file system
Declaration
public static IPALFileSystem FileSystem { get; }
Property Value
Type | Description |
---|---|
IPALFileSystem |
Graphics
Abstracts functions related to working with graphical images
Declaration
public static IPALGraphics Graphics { get; }
Property Value
Type | Description |
---|---|
IPALGraphics |
IsNetCore
Returns true when platform is NET Core
Declaration
public static bool IsNetCore { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MachineInfo
Abstracts functions related to obtaining the machine parameters such as CPU and RAM
Declaration
public static IPALMachineInfo MachineInfo { get; }
Property Value
Type | Description |
---|---|
IPALMachineInfo |
PlatformName
Returns the name of the platform implementation, for example ".NET 4.7.1"
Declaration
public static string PlatformName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
____SetImplementation(PALImplementation)
System method. Developers do not call. Entry point invoked by runtime implementation modules.
Declaration
public static void ____SetImplementation(PALImplementation implementation)
Parameters
Type | Name | Description |
---|---|---|
PALImplementation | implementation |
SetProcessInvariantCulture()
Sets invariant culture for the whole process regardless of machine's culture
Declaration
public static void SetProcessInvariantCulture()