Class Environment
Assembly: P42.Utils.dll
Syntax
public static class Environment
Fields
|
Improve this Doc
View Source
EmbeddedResourceAssemblyResolver
Declaration
public static Func<string, Assembly> EmbeddedResourceAssemblyResolver
Field Value
|
Improve this Doc
View Source
Declaration
public static Action PlatformPathLoader
Field Value
Properties
|
Improve this Doc
View Source
ApplicationCachePath
Declaration
public static string ApplicationCachePath { get; set; }
Property Value
|
Improve this Doc
View Source
ApplicationDataPath
Declaration
public static string ApplicationDataPath { get; set; }
Property Value
|
Improve this Doc
View Source
IsHeadlessTest
Gets or sets a value indicating whether this Environment is headless test (and thus the MainThreadId is questionable).
Declaration
public static bool IsHeadlessTest { get; set; }
Property Value
Type |
Description |
Boolean |
true if is headless test; otherwise, false .
|
|
Improve this Doc
View Source
IsOnMainThread
Gets a value indicating whether this Environment is on main thread.
Declaration
public static bool IsOnMainThread { get; }
Property Value
Type |
Description |
Boolean |
true if is on main thread; otherwise, false .
|
|
Improve this Doc
View Source
MainThreadId
Gets or sets the main thread identifier.
Declaration
public static int MainThreadId { get; set; }
Property Value
Type |
Description |
Int32 |
The main thread identifier.
|
|
Improve this Doc
View Source
TemporaryStoragePath
Declaration
public static string TemporaryStoragePath { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetOperatingSystem()
Gets the operating system.
Declaration
public static string GetOperatingSystem()
Returns
Type |
Description |
String |
The operating system.
|
|
Improve this Doc
View Source
Init()
Declaration
public static void Init()