Platform
Assembly: ServiceStack.dll
View Source
Declaration
public class Platform
Fields
Instance
View Source
Declaration
public static Platform Instance
Methods
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
Type | Name |
---|---|
ServiceStack.HostConfig | config |
GetNullableAppSetting(String)
View Source
Declaration
public virtual string GetNullableAppSetting(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
GetAppSetting(String)
View Source
Declaration
public virtual string GetAppSetting(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
GetAppSetting(String, String)
View Source
Declaration
public virtual string GetAppSetting(string key, string defaultValue)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
System.String | defaultValue |
GetAppSetting<T>(String, T)
View Source
Declaration
public virtual T GetAppSetting<T>(string key, T defaultValue)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | key |
<T> | defaultValue |
Type Parameters
T
GetConnectionString(String)
View Source
Declaration
public virtual string GetConnectionString(string key)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | key |
GetAppConfigPath()
View Source
Declaration
public virtual string GetAppConfigPath()
Returns
System.String
GetCookiesAsDictionary(IRequest)
View Source
Declaration
public virtual Dictionary<string, string> GetCookiesAsDictionary(IRequest httpReq)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | httpReq |
GetCookiesAsDictionary(IResponse)
View Source
Declaration
public virtual Dictionary<string, string> GetCookiesAsDictionary(IResponse httpRes)
Returns
System.Collections.Generic.Dictionary<System.String,System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IResponse | httpRes |
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
Type | Name |
---|---|
System.String | textValue |
Type Parameters
T