Class DefaultWebHost
The default web host.
Inheritance
System.Object
ServiceStack.ServiceStackHost
ServiceStack.AppHostBase
DefaultWebHost
Implements
ServiceStack.IAppHost
ServiceStack.Configuration.IResolver
Funq.IFunqlet
Funq.IHasContainer
System.IDisposable
Inherited Members
ServiceStack.AppHostBase.Bind(Microsoft.AspNetCore.Builder.IApplicationBuilder)
ServiceStack.AppHostBase.BindHost(ServiceStack.ServiceStackHost, Microsoft.AspNetCore.Builder.IApplicationBuilder)
ServiceStack.AppHostBase.GetWebRootPath()
ServiceStack.AppHostBase.OnConfigLoad()
ServiceStack.AppHostBase.RegisterLicenseFromAppSettings(ServiceStack.Configuration.IAppSettings)
ServiceStack.AppHostBase.ProcessRequest(Microsoft.AspNetCore.Http.HttpContext, System.Func<System.Threading.Tasks.Task>)
ServiceStack.AppHostBase.MapProjectPath(System.String)
ServiceStack.AppHostBase.TryGetCurrentRequest()
ServiceStack.AppHostBase.GetOrCreateRequest(Microsoft.AspNetCore.Http.IHttpContextAccessor)
ServiceStack.AppHostBase.GetOrCreateRequest(Microsoft.AspNetCore.Http.HttpContext)
ServiceStack.AppHostBase.Dispose(System.Boolean)
ServiceStack.AppHostBase.NetCoreHandler
ServiceStack.ServiceStackHost.RestPaths
ServiceStack.ServiceStackHost.IsReady()
ServiceStack.ServiceStackHost.CreateServiceController(System.Reflection.Assembly[])
ServiceStack.ServiceStackHost.SetConfig(ServiceStack.HostConfig)
ServiceStack.ServiceStackHost.Init()
ServiceStack.ServiceStackHost.PopulateArrayFilters()
ServiceStack.ServiceStackHost.GetVirtualFileSources()
ServiceStack.ServiceStackHost.Start(System.String)
ServiceStack.ServiceStackHost.OnPreExecuteServiceFilter(ServiceStack.IService, System.Object, ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.OnPostExecuteServiceFilter(ServiceStack.IService, System.Object, ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.OnServiceException(ServiceStack.Web.IRequest, System.Object, System.Exception)
ServiceStack.ServiceStackHost.OnUncaughtException(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.String, System.Exception)
ServiceStack.ServiceStackHost.HandleUncaughtException(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.String, System.Exception)
ServiceStack.ServiceStackHost.OnStartupException(System.Exception)
ServiceStack.ServiceStackHost.OnAfterConfigChanged()
ServiceStack.ServiceStackHost.OnBeforeInit()
ServiceStack.ServiceStackHost.OnAfterInit()
ServiceStack.ServiceStackHost.Release(System.Object)
ServiceStack.ServiceStackHost.OnEndRequest(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.Register<T>(T)
ServiceStack.ServiceStackHost.RegisterAs<T, TAs>()
ServiceStack.ServiceStackHost.TryResolve<T>()
ServiceStack.ServiceStackHost.Resolve<T>()
ServiceStack.ServiceStackHost.GetPlugin<T>()
ServiceStack.ServiceStackHost.HasPlugin<T>()
ServiceStack.ServiceStackHost.CreateServiceRunner<TRequest>(ServiceStack.Host.ActionContext)
ServiceStack.ServiceStackHost.ResolveLocalizedString(System.String, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.ResolveAbsoluteUrl(System.String, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.UseHttps(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetBaseUrl(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.ResolvePhysicalPath(System.String, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.LoadPlugin(ServiceStack.IPlugin[])
ServiceStack.ServiceStackHost.ExecuteService(System.Object)
ServiceStack.ServiceStackHost.ExecuteService(System.Object, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.ExecuteServiceAsync(System.Object, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.ExecuteService(System.Object, ServiceStack.RequestAttributes)
ServiceStack.ServiceStackHost.ExecuteMessage(ServiceStack.Messaging.IMessage)
ServiceStack.ServiceStackHost.ExecuteMessage(ServiceStack.Messaging.IMessage, ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.RegisterService(System.Type, System.String[])
ServiceStack.ServiceStackHost.RegisterServicesInAssembly(System.Reflection.Assembly)
ServiceStack.ServiceStackHost.GetRouteAttributes(System.Type)
ServiceStack.ServiceStackHost.GenerateWsdl(ServiceStack.Metadata.WsdlTemplateBase)
ServiceStack.ServiceStackHost.RegisterTypedRequestFilter<T>(System.Action<ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, T>)
ServiceStack.ServiceStackHost.RegisterTypedRequestFilter<T>(System.Func<Funq.Container, ServiceStack.Host.ITypedFilter<T>>)
ServiceStack.ServiceStackHost.RegisterTypedResponseFilter<T>(System.Action<ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, T>)
ServiceStack.ServiceStackHost.RegisterTypedResponseFilter<T>(System.Func<Funq.Container, ServiceStack.Host.ITypedFilter<T>>)
ServiceStack.ServiceStackHost.RegisterTypedMessageRequestFilter<T>(System.Action<ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, T>)
ServiceStack.ServiceStackHost.RegisterTypedMessageResponseFilter<T>(System.Action<ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, T>)
ServiceStack.ServiceStackHost.ResolvePathInfo(ServiceStack.Web.IRequest, System.String)
ServiceStack.ServiceStackHost.NormalizePathInfo(System.String, System.String)
ServiceStack.ServiceStackHost.ReturnRedirectHandler(ServiceStack.Web.IHttpRequest)
ServiceStack.ServiceStackHost.ReturnRequestInfoHandler(ServiceStack.Web.IHttpRequest)
ServiceStack.ServiceStackHost.Dispose()
ServiceStack.ServiceStackHost.ApplyRequestConvertersAsync(ServiceStack.Web.IRequest, System.Object)
ServiceStack.ServiceStackHost.ApplyResponseConvertersAsync(ServiceStack.Web.IRequest, System.Object)
ServiceStack.ServiceStackHost.ApplyCustomHandlerRequestFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.ApplyPreAuthenticateFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.ApplyPreRequestFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.ApplyRequestFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyRequestFiltersAsync(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyRequestFiltersSingleAsync(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyResponseFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyResponseFiltersAsync(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyResponseFiltersSingleAsync(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyMessageRequestFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ApplyMessageResponseFilters(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.ExecTypedFilters(System.Collections.Generic.Dictionary<System.Type, ServiceStack.Host.ITypedFilter>, ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Object)
ServiceStack.ServiceStackHost.GetDefaultSessionExpiry(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.HasFeature(ServiceStack.Feature)
ServiceStack.ServiceStackHost.AssertFeatures(ServiceStack.Feature)
ServiceStack.ServiceStackHost.AssertContentType(System.String)
ServiceStack.ServiceStackHost.HasAccessToMetadata(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse)
ServiceStack.ServiceStackHost.HandleErrorResponse(ServiceStack.Web.IRequest, ServiceStack.Web.IResponse, System.Net.HttpStatusCode, System.String)
ServiceStack.ServiceStackHost.GetCustomErrorHandler(System.Int32)
ServiceStack.ServiceStackHost.GetCustomErrorHandler(System.Net.HttpStatusCode)
ServiceStack.ServiceStackHost.GetNotFoundHandler()
ServiceStack.ServiceStackHost.GetCustomErrorHttpHandler(System.Net.HttpStatusCode)
ServiceStack.ServiceStackHost.HasValidAuthSecret(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.ResolveResponseException(System.Exception)
ServiceStack.ServiceStackHost.OnExceptionTypeFilter(System.Exception, ServiceStack.ResponseStatus)
ServiceStack.ServiceStackHost.OnLogError(System.Type, System.String, System.Exception)
ServiceStack.ServiceStackHost.OnSaveSession(ServiceStack.Web.IRequest, ServiceStack.Auth.IAuthSession, System.Nullable<System.TimeSpan>)
ServiceStack.ServiceStackHost.OnSessionFilter(ServiceStack.Auth.IAuthSession, System.String)
ServiceStack.ServiceStackHost.AllowSetCookie(ServiceStack.Web.IRequest, System.String)
ServiceStack.ServiceStackHost.OnAfterExecute(ServiceStack.Web.IRequest, System.Object, System.Object)
ServiceStack.ServiceStackHost.GetTypesConfigForMetadata(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetDbConnection(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetRedisClient(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetCacheClient(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetMemoryCacheClient(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetMessageProducer(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetServiceGateway(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetAuthRepository(ServiceStack.Web.IRequest)
ServiceStack.ServiceStackHost.GetCookies(ServiceStack.Web.IHttpResponse)
ServiceStack.ServiceStackHost.ShouldCompressFile(ServiceStack.IO.IVirtualFile)
ServiceStack.ServiceStackHost.GetRuntimeConfig<T>(ServiceStack.Web.IRequest, System.String, T)
ServiceStack.ServiceStackHost.Instance
ServiceStack.ServiceStackHost.StartedAt
ServiceStack.ServiceStackHost.AfterInitAt
ServiceStack.ServiceStackHost.ReadyAt
ServiceStack.ServiceStackHost.TestMode
ServiceStack.ServiceStackHost.ServiceAssemblies
ServiceStack.ServiceStackHost.HasStarted
ServiceStack.ServiceStackHost.ServiceName
ServiceStack.ServiceStackHost.AppSettings
ServiceStack.ServiceStackHost.Metadata
ServiceStack.ServiceStackHost.ServiceController
ServiceStack.ServiceStackHost.ExcludeAutoRegisteringServiceTypes
ServiceStack.ServiceStackHost.Container
ServiceStack.ServiceStackHost.Routes
ServiceStack.ServiceStackHost.RequestBinders
ServiceStack.ServiceStackHost.ContentTypes
ServiceStack.ServiceStackHost.PreRequestFilters
ServiceStack.ServiceStackHost.RequestConverters
ServiceStack.ServiceStackHost.ResponseConverters
ServiceStack.ServiceStackHost.GlobalRequestFilters
ServiceStack.ServiceStackHost.GlobalRequestFiltersAsync
ServiceStack.ServiceStackHost.GlobalTypedRequestFilters
ServiceStack.ServiceStackHost.GlobalResponseFilters
ServiceStack.ServiceStackHost.GlobalResponseFiltersAsync
ServiceStack.ServiceStackHost.GlobalTypedResponseFilters
ServiceStack.ServiceStackHost.GlobalMessageRequestFilters
ServiceStack.ServiceStackHost.GlobalMessageRequestFiltersAsync
ServiceStack.ServiceStackHost.GlobalTypedMessageRequestFilters
ServiceStack.ServiceStackHost.GlobalMessageResponseFilters
ServiceStack.ServiceStackHost.GlobalMessageResponseFiltersAsync
ServiceStack.ServiceStackHost.GlobalTypedMessageResponseFilters
ServiceStack.ServiceStackHost.ViewEngines
ServiceStack.ServiceStackHost.ServiceExceptionHandlers
ServiceStack.ServiceStackHost.UncaughtExceptionHandlers
ServiceStack.ServiceStackHost.BeforeConfigure
ServiceStack.ServiceStackHost.AfterConfigure
ServiceStack.ServiceStackHost.AfterInitCallbacks
ServiceStack.ServiceStackHost.OnDisposeCallbacks
ServiceStack.ServiceStackHost.OnEndRequestCallbacks
ServiceStack.ServiceStackHost.RawHttpHandlers
ServiceStack.ServiceStackHost.CatchAllHandlers
ServiceStack.ServiceStackHost.GlobalHtmlErrorHttpHandler
ServiceStack.ServiceStackHost.CustomErrorHttpHandlers
ServiceStack.ServiceStackHost.StartUpErrors
ServiceStack.ServiceStackHost.AsyncErrors
ServiceStack.ServiceStackHost.PluginsLoaded
ServiceStack.ServiceStackHost.Plugins
ServiceStack.ServiceStackHost.VirtualFiles
ServiceStack.ServiceStackHost.VirtualFileSources
ServiceStack.ServiceStackHost.AddVirtualFileSources
ServiceStack.ServiceStackHost.GatewayRequestFilters
ServiceStack.ServiceStackHost.GatewayRequestFiltersAsync
ServiceStack.ServiceStackHost.GatewayResponseFilters
ServiceStack.ServiceStackHost.GatewayResponseFiltersAsync
ServiceStack.ServiceStackHost.Config
ServiceStack.ServiceStackHost.MetadataPagesConfig
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.ServiceStack.Hosting
Assembly: Kephas.ServiceStack.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultWebHost : AppHostBase, IWebHost, IAppHost, IResolver, IFunqlet, IHasContainer, IDisposable, IAsyncInitializable, IAsyncFinalizable, ILoggable
Constructors
| Improve this Doc View SourceDefaultWebHost(IAppRuntime, ICompositionContext, IEndpointServiceProvider, ICollection<IExportFactory<IHostConfigurator, EndpointMetadata>>)
Initializes a new instance of the DefaultWebHost class.
Declaration
public DefaultWebHost(IAppRuntime appRuntime, ICompositionContext compositionContext, IEndpointServiceProvider endpointServiceProvider, ICollection<IExportFactory<IHostConfigurator, EndpointMetadata>> hostConfiguratorFactories)
Parameters
Type | Name | Description |
---|---|---|
IAppRuntime | appRuntime | The application runtime. |
ICompositionContext | compositionContext | Context for the composition. |
IEndpointServiceProvider | endpointServiceProvider | The endpoint service provider. |
System.Collections.Generic.ICollection<IExportFactory<IHostConfigurator, EndpointMetadata>> | hostConfiguratorFactories | The host configurator factories. |
Properties
| Improve this Doc View SourceLogger
Gets or sets the logger.
Declaration
public ILogger Logger { get; set; }
Property Value
Type | Description |
---|---|
ILogger | The logger. |
Methods
| Improve this Doc View SourceConfigure(Container)
Configures the specified container.
Declaration
public override void Configure(Container container)
Parameters
Type | Name | Description |
---|---|---|
Funq.Container | container | The container. |
Overrides
ServiceStack.ServiceStackHost.Configure(Funq.Container)
|
Improve this Doc
View Source
FinalizeAsync(IContext, CancellationToken)
Finalizes the service.
Declaration
public virtual Task FinalizeAsync(IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | context | Optional. An optional context for finalization. |
System.Threading.CancellationToken | cancellationToken | Optional. The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An asynchronous result. |
GetBaseUrls()
Gets the base urls.
Declaration
protected virtual string[] GetBaseUrls()
Returns
Type | Description |
---|---|
System.String[] | An array of string. |
InitializeAsync(IContext, CancellationToken)
Initializes the service asynchronously.
Declaration
public virtual Task InitializeAsync(IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IContext | context | An optional context for initialization. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | An awaitable task. |
Implements
ServiceStack.IAppHost
ServiceStack.Configuration.IResolver
Funq.IFunqlet
Funq.IHasContainer
System.IDisposable