Skip to main content

Env

Assembly: ServiceStack.Text.dll​
View Source​
Declaration
public static class Env

Properties​

VersionString​

View Source​
Declaration
public static string VersionString { get; set; }

IsLinux​

View Source​
Declaration
public static bool IsLinux { get; set; }

IsOSX​

View Source​
Declaration
public static bool IsOSX { get; set; }

IsUnix​

View Source​
Declaration
public static bool IsUnix { get; set; }

IsWindows​

View Source​
Declaration
public static bool IsWindows { get; set; }

IsMono​

View Source​
Declaration
public static bool IsMono { get; set; }

IsIOS​

View Source​
Declaration
public static bool IsIOS { get; set; }

IsAndroid​

View Source​
Declaration
public static bool IsAndroid { get; set; }

IsNetNative​

View Source​
Declaration
public static bool IsNetNative { get; set; }

IsUWP​

View Source​
Declaration
public static bool IsUWP { get; }

IsNetStandard​

View Source​
Declaration
public static bool IsNetStandard { get; set; }

IsNetCore21​

View Source​
Declaration
public static bool IsNetCore21 { get; set; }

IsNet6​

View Source​
Declaration
public static bool IsNet6 { get; set; }

IsNetStandard20​

View Source​
Declaration
public static bool IsNetStandard20 { get; set; }

IsNetFramework​

View Source​
Declaration
public static bool IsNetFramework { get; set; }

IsNetCore​

View Source​
Declaration
public static bool IsNetCore { get; set; }

IsNetCore3​

View Source​
Declaration
public static bool IsNetCore3 { get; set; }

SupportsExpressions​

View Source​
Declaration
public static bool SupportsExpressions { get; }

SupportsEmit​

View Source​
Declaration
public static bool SupportsEmit { get; }

SupportsDynamic​

View Source​
Declaration
public static bool SupportsDynamic { get; }

StrictMode​

View Source​
Declaration
public static bool StrictMode { get; set; }

ServerUserAgent​

View Source​
Declaration
public static string ServerUserAgent { get; set; }

HasMultiplePlatformTargets​

View Source​
Declaration
public static bool HasMultiplePlatformTargets { get; set; }

ReferenceAssemblyPath​

View Source​
Declaration
public static string ReferenceAssemblyPath { get; set; }

Fields​

ServiceStackVersion​

View Source​
Declaration
public static decimal ServiceStackVersion

ContinueOnCapturedContext​

View Source​
Declaration
public const bool ContinueOnCapturedContext = false

Methods​

GetReleaseDate()​

View Source​
Declaration
public static DateTime GetReleaseDate()
Returns​

System.DateTime

ConfigAwait(Task)​

View Source​
Declaration
public static ConfiguredTaskAwaitable ConfigAwait(this Task task)
Returns​

System.Runtime.CompilerServices.ConfiguredTaskAwaitable

Parameters​
TypeName
System.Threading.Tasks.Tasktask

ConfigAwait<T>(Task<T>)​

View Source​
Declaration
public static ConfiguredTaskAwaitable<T> ConfigAwait<T>(this Task<T> task)
Returns​

System.Runtime.CompilerServices.ConfiguredTaskAwaitable<<T>>

Parameters​
TypeName
System.Threading.Tasks.Task<<T>>task
Type Parameters​
  • T

ConfigAwaitNetCore(Task)​

Only .ConfigAwait(false) in .NET Core as loses HttpContext.Current in NETFX/ASP.NET

View Source​
Declaration
public static ConfiguredTaskAwaitable ConfigAwaitNetCore(this Task task)
Returns​

System.Runtime.CompilerServices.ConfiguredTaskAwaitable

Parameters​
TypeName
System.Threading.Tasks.Tasktask

ConfigAwaitNetCore<T>(Task<T>)​

Only .ConfigAwait(false) in .NET Core as loses HttpContext.Current in NETFX/ASP.NET

View Source​
Declaration
public static ConfiguredTaskAwaitable<T> ConfigAwaitNetCore<T>(this Task<T> task)
Returns​

System.Runtime.CompilerServices.ConfiguredTaskAwaitable<<T>>

Parameters​
TypeName
System.Threading.Tasks.Task<<T>>task
Type Parameters​
  • T