HostConfig
Assembly: ServiceStack.dll
View Source
public class HostConfig
Properties
Instance
View Source
public static HostConfig Instance { get; }
WsdlServiceNamespace
View Source
public string WsdlServiceNamespace { get; set; }
ApiVersion
View Source
public string ApiVersion { get; set; }
AppInfo
View Source
public AppInfo AppInfo { get; set; }
MetadataVisibility
View Source
public RequestAttributes MetadataVisibility { get; set; }
EmbeddedResourceBaseTypes
View Source
public List<Type> EmbeddedResourceBaseTypes { get; set; }
EmbeddedResourceSources
View Source
public List<Assembly> EmbeddedResourceSources { get; set; }
EmbeddedResourceTreatAsFiles
View Source
public HashSet<string> EmbeddedResourceTreatAsFiles { get; set; }
DefaultContentType
View Source
public string DefaultContentType { get; set; }
PreferredContentTypes
View Source
public List<string> PreferredContentTypes { get; set; }
AllowJsonpRequests
View Source
public bool AllowJsonpRequests { get; set; }
AllowRouteContentTypeExtensions
View Source
public bool AllowRouteContentTypeExtensions { get; set; }
BufferSyncSerializers
View Source
public bool BufferSyncSerializers { get; set; }
DebugMode
View Source
public bool DebugMode { get; set; }
StrictMode
View Source
public bool? StrictMode { get; set; }
DebugAspNetHostEnvironment
View Source
public string DebugAspNetHostEnvironment { get; set; }
DebugHttpListenerHostEnvironment
View Source
public string DebugHttpListenerHostEnvironment { get; set; }
DefaultDocuments
View Source
public List<string> DefaultDocuments { get; }
IgnoreWarningsOnAllProperties
View Source
public bool IgnoreWarningsOnAllProperties { get; set; }
IgnoreWarningsOnAutoQueryApis
View Source
public bool IgnoreWarningsOnAutoQueryApis { get; set; }
IgnoreWarningsOnPropertyNames
View Source
public HashSet<string> IgnoreWarningsOnPropertyNames { get; }
IgnoreFormatsInMetadata
View Source
public HashSet<string> IgnoreFormatsInMetadata { get; set; }
AllowFileExtensions
View Source
public HashSet<string> AllowFileExtensions { get; set; }
CompressFilesWithExtensions
View Source
public HashSet<string> CompressFilesWithExtensions { get; set; }
CompressFilesLargerThanBytes
View Source
public long? CompressFilesLargerThanBytes { get; set; }
ForbiddenPaths
View Source
public List<string> ForbiddenPaths { get; set; }
AllowFilePaths
View Source
public List<string> AllowFilePaths { get; set; }
WebHostUrl
View Source
public string WebHostUrl { get; set; }
WebHostPhysicalPath
View Source
public string WebHostPhysicalPath { get; set; }
HandlerFactoryPath
View Source
public string HandlerFactoryPath { get; set; }
PathBase
View Source
public string PathBase { get; }
DefaultRedirectPath
View Source
public string DefaultRedirectPath { get; set; }
MetadataRedirectPath
View Source
public string MetadataRedirectPath { get; set; }
ServiceEndpointsMetadataConfig
View Source
public ServiceEndpointsMetadataConfig ServiceEndpointsMetadataConfig { get; set; }
SoapServiceName
View Source
public string SoapServiceName { get; set; }
XmlWriterSettings
View Source
public XmlWriterSettings XmlWriterSettings { get; set; }
EnableAccessRestrictions
View Source
public bool EnableAccessRestrictions { get; set; }
EnableAutoHtmlResponses
View Source
public bool EnableAutoHtmlResponses { get; set; }
UseBclJsonSerializers
View Source
public bool UseBclJsonSerializers { get; set; }
IsMobileRegex
View Source
public Regex IsMobileRegex { get; set; }
RequestRules
View Source
public Dictionary<string, Func<IHttpRequest, bool>> RequestRules { get; set; }
GlobalResponseHeaders
View Source
public Dictionary<string, string> GlobalResponseHeaders { get; set; }
EnableFeatures
View Source
public Feature EnableFeatures { get; set; }
ReturnsInnerException
View Source
public bool ReturnsInnerException { get; set; }
WriteErrorsToResponse
View Source
public bool WriteErrorsToResponse { get; set; }
DisposeDependenciesAfterUse
View Source
public bool DisposeDependenciesAfterUse { get; set; }
LogUnobservedTaskExceptions
View Source
public bool LogUnobservedTaskExceptions { get; set; }
LogFactory
View Source
[Obsolete("Use LogManager.LogFactory")]
public ILogFactory LogFactory { get; set; }
HtmlReplaceTokens
View Source
public Dictionary<string, string> HtmlReplaceTokens { get; set; }
AppendUtf8CharsetOnContentTypes
View Source
public HashSet<string> AppendUtf8CharsetOnContentTypes { get; set; }
AddMaxAgeForStaticMimeTypes
View Source
public Dictionary<string, TimeSpan> AddMaxAgeForStaticMimeTypes { get; set; }
RouteNamingConventions
View Source
public List<RouteNamingConventionDelegate> RouteNamingConventions { get; set; }
MapExceptionToStatusCode
View Source
public Dictionary<Type, int> MapExceptionToStatusCode { get; set; }
UseSaltedHash
If enabled reverts to persist password hashes using the original SHA256 SaltedHash implementation. By default ServiceStack uses the more secure ASP.NET Identity v3 PBKDF2 with HMAC-SHA256 implementation.
New Users will have their passwords persisted with the specified implementation, likewise existing users will have their passwords re-hased to use the current registered IPasswordHasher.
View Source
public bool UseSaltedHash { get; set; }
FallbackPasswordHashers
Older Password Hashers that were previously used to hash passwords. Failed password matches check to see if the password was hashed with any of the registered FallbackPasswordHashers, if true the password attempt will succeed and password will get re-hashed with the current registered IPasswordHasher.
View Source
public List<IPasswordHasher> FallbackPasswordHashers { get; }
AllowSessionIdsInHttpParams
View Source
public bool AllowSessionIdsInHttpParams { get; set; }
AllowSessionCookies
View Source
public bool AllowSessionCookies { get; set; }
RestrictAllCookiesToDomain
View Source
public string RestrictAllCookiesToDomain { get; set; }
DefaultJsonpCacheExpiration
View Source
public TimeSpan DefaultJsonpCacheExpiration { get; set; }
Return204NoContentForEmptyResponse
View Source
public bool Return204NoContentForEmptyResponse { get; set; }
AllowJsConfig
View Source
public bool AllowJsConfig { get; set; }
AllowPartialResponses
View Source
public bool AllowPartialResponses { get; set; }
AllowNonHttpOnlyCookies
View Source
[Obsolete("Use !UseHttpOnlyCookies")]
public bool AllowNonHttpOnlyCookies { set; }
OnlySendSessionCookiesSecurely
View Source
[Obsolete("Use UseSecureCookies")]
public bool OnlySendSessionCookiesSecurely { set; }
UseSecureCookies
View Source
public bool UseSecureCookies { get; set; }
UseHttpOnlyCookies
View Source
public bool UseHttpOnlyCookies { get; set; }
UseSameSiteCookies
Configure cookies to use SameSite=[null:Lax,true:Strict,false:None]
View Source
public bool? UseSameSiteCookies { get; set; }
AllowAclUrlReservation
View Source
public bool AllowAclUrlReservation { get; set; }
AddRedirectParamsToQueryString
View Source
public bool AddRedirectParamsToQueryString { get; set; }
RedirectToDefaultDocuments
View Source
public bool RedirectToDefaultDocuments { get; set; }
StripApplicationVirtualPath
View Source
public bool StripApplicationVirtualPath { get; set; }
SkipFormDataInCreatingRequest
View Source
public bool SkipFormDataInCreatingRequest { get; set; }
RedirectDirectoriesToTrailingSlashes
View Source
public bool RedirectDirectoriesToTrailingSlashes { get; set; }
ScanSkipPaths
View Source
public List<string> ScanSkipPaths { get; }
RedirectPaths
View Source
public Dictionary<string, string> RedirectPaths { get; }
UseHttpsLinks
View Source
public bool UseHttpsLinks { get; set; }
UseCamelCase
View Source
public bool UseCamelCase { get; set; }
UseJsObject
View Source
public bool UseJsObject { get; set; }
EnableOptimizations
View Source
public bool EnableOptimizations { get; set; }
TreatNonNullableRefTypesAsRequired
View Source
public bool TreatNonNullableRefTypesAsRequired { get; set; }
AdminAuthSecret
View Source
public string AdminAuthSecret { get; set; }
AuthSecretSession
View Source
public IAuthSession AuthSecretSession { get; set; }
FallbackRestPath
View Source
public FallbackRestPathDelegate FallbackRestPath { get; set; }
RazorNamespaces
View Source
public HashSet<string> RazorNamespaces { get; }
Fields
DefaultWsdlNamespace
View Source
public const string DefaultWsdlNamespace = "http://schemas.servicestack.net/types"
ServiceStackPath
View Source
public static string ServiceStackPath
Methods
ResetInstance()
View Source
public static HostConfig ResetInstance()
Returns
NewInstance()
View Source
public static HostConfig NewInstance()