Skip to main content

PlatformNet

Assembly: ServiceStack.dll
View Source
Declaration
public class PlatformNet : Platform

Fields

ConfigNullValue

View Source
Declaration
public const string ConfigNullValue = "{null}"

Methods

ConfigSectionExists(String)

Determines whether the Config section identified by the sectionName exists.

View Source
Declaration
public static bool ConfigSectionExists(string sectionName)
Returns

System.Boolean

Parameters
TypeName
System.StringsectionName

GetNullableAppSetting(String)

View Source
Declaration
public override string GetNullableAppSetting(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetAppSetting(String)

View Source
Declaration
public override string GetAppSetting(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetAppSetting(String, String)

View Source
Declaration
public override string GetAppSetting(string key, string defaultValue)
Returns

System.String

Parameters
TypeName
System.Stringkey
System.StringdefaultValue

GetConnectionString(String)

View Source
Declaration
public override string GetConnectionString(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetAppSetting<T>(String, T)

View Source
Declaration
public override T GetAppSetting<T>(string key, T defaultValue)
Returns

<T>

Parameters
TypeName
System.Stringkey
<T>defaultValue
Type Parameters
  • T

GetConnectionStringSetting(String)

Gets the connection string setting.

View Source
Declaration
public static ConnectionStringSettings GetConnectionStringSetting(string key)
Returns

System.Configuration.ConnectionStringSettings

Parameters
TypeName
System.Stringkey

InitHostConfig(HostConfig)

View Source
Declaration
public override void InitHostConfig(HostConfig config)
Parameters
TypeName
ServiceStack.HostConfigconfig

GetRazorNamespaces()

View Source
Declaration
public override HashSet<string> GetRazorNamespaces()
Returns

System.Collections.Generic.HashSet<System.String>

GetAppConfigPath()

View Source
Declaration
public override string GetAppConfigPath()
Returns

System.String

GetRequestAttributes(OperationContext)

View Source
Declaration
public RequestAttributes GetRequestAttributes(OperationContext operationContext)
Returns

ServiceStack.RequestAttributes

Parameters
TypeName
System.ServiceModel.OperationContextoperationContext

GetIpAddress(OperationContext)

View Source
Declaration
public static IPAddress GetIpAddress(OperationContext context)
Returns

System.Net.IPAddress

Parameters
TypeName
System.ServiceModel.OperationContextcontext

GetCookiesAsDictionary(IRequest)

View Source
Declaration
public override Dictionary<string, string> GetCookiesAsDictionary(IRequest httpReq)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq

GetCookiesAsDictionary(IResponse)

View Source
Declaration
public override Dictionary<string, string> GetCookiesAsDictionary(IResponse httpRes)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
ServiceStack.Web.IResponsehttpRes

Inherited Methods

GetAppConfigPath()

View Source
Declaration
public virtual string GetAppConfigPath()
Returns

System.String

GetAppSetting(String)

View Source
Declaration
public virtual string GetAppSetting(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetAppSetting(String, String)

View Source
Declaration
public virtual string GetAppSetting(string key, string defaultValue)
Returns

System.String

Parameters
TypeName
System.Stringkey
System.StringdefaultValue

GetAppSetting<T>(String, T)

View Source
Declaration
public virtual T GetAppSetting<T>(string key, T defaultValue)
Returns

<T>

Parameters
TypeName
System.Stringkey
<T>defaultValue
Type Parameters
  • T

GetConnectionString(String)

View Source
Declaration
public virtual string GetConnectionString(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetCookiesAsDictionary(IRequest)

View Source
Declaration
public virtual Dictionary<string, string> GetCookiesAsDictionary(IRequest httpReq)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
ServiceStack.Web.IRequesthttpReq

GetCookiesAsDictionary(IResponse)

View Source
Declaration
public virtual Dictionary<string, string> GetCookiesAsDictionary(IResponse httpRes)
Returns

System.Collections.Generic.Dictionary<System.String,System.String>

Parameters
TypeName
ServiceStack.Web.IResponsehttpRes

GetNullableAppSetting(String)

View Source
Declaration
public virtual string GetNullableAppSetting(string key)
Returns

System.String

Parameters
TypeName
System.Stringkey

GetRazorNamespaces()

View Source
Declaration
public virtual HashSet<string> GetRazorNamespaces()
Returns

System.Collections.Generic.HashSet<System.String>

InitHostConfig(HostConfig)

View Source
Declaration
public virtual void InitHostConfig(HostConfig config)
Parameters
TypeName
ServiceStack.HostConfigconfig

ParseTextValue<T>(String)

Returns the value returned by the 'T.Parse(string)' method if exists otherwise 'new T(string)'. e.g. if T was a TimeSpan it will return TimeSpan.Parse(textValue). If there is no Parse Method it will attempt to create a new instance of the destined type

View Source
Declaration
public static T ParseTextValue<T>(string textValue)
Returns

<T>

Parameters
TypeName
System.StringtextValue
Type Parameters
  • T