C# Class ServiceStack.AppHostBase

Inherit from this class if you want to host your web services inside an ASP.NET application.
Inheritance: ServiceStackHost
Exibir arquivo Open project: ServiceStack/ServiceStack Class Usage Examples

Public Methods

Method Description
Bind ( IApplicationBuilder app ) : void
BindHost ( ServiceStackHost appHost, IApplicationBuilder app ) : void
GetOrCreateRequest ( HttpContext httpContext ) : IRequest
GetOrCreateRequest ( IHttpContextAccessor httpContextAccessor ) : IRequest

Creates an IRequest from IHttpContextAccessor if it's been registered as a singleton

GetWebRootPath ( ) : string

The FilePath used in Virtual File Sources

MapProjectPath ( string relativePath ) : string
OnConfigLoad ( ) : void
ProcessRequest ( HttpContext context, Func next ) : Task
RegisterLicenseFromAppSettings ( IAppSettings appSettings ) : void
TryGetCurrentRequest ( ) : IRequest

Protected Methods

Method Description
AppHostBase ( string serviceName ) : System

Method Details

AppHostBase() protected method

protected AppHostBase ( string serviceName ) : System
serviceName string
return System

Bind() public method

public Bind ( IApplicationBuilder app ) : void
app IApplicationBuilder
return void

BindHost() public static method

public static BindHost ( ServiceStackHost appHost, IApplicationBuilder app ) : void
appHost ServiceStackHost
app IApplicationBuilder
return void

GetOrCreateRequest() public static method

public static GetOrCreateRequest ( HttpContext httpContext ) : IRequest
httpContext System.Web.HttpContext
return IRequest

GetOrCreateRequest() public static method

Creates an IRequest from IHttpContextAccessor if it's been registered as a singleton
public static GetOrCreateRequest ( IHttpContextAccessor httpContextAccessor ) : IRequest
httpContextAccessor IHttpContextAccessor
return IRequest

GetWebRootPath() public method

The FilePath used in Virtual File Sources
public GetWebRootPath ( ) : string
return string

MapProjectPath() public method

public MapProjectPath ( string relativePath ) : string
relativePath string
return string

OnConfigLoad() public method

public OnConfigLoad ( ) : void
return void

ProcessRequest() public method

public ProcessRequest ( HttpContext context, Func next ) : Task
context System.Web.HttpContext
next Func
return Task

RegisterLicenseFromAppSettings() public static method

public static RegisterLicenseFromAppSettings ( IAppSettings appSettings ) : void
appSettings IAppSettings
return void

TryGetCurrentRequest() public method

public TryGetCurrentRequest ( ) : IRequest
return IRequest