C# 클래스 ServiceStack.ServiceStackHost

파일 보기 프로젝트 열기: ServiceStack/ServiceStack 1 사용 예제들

공개 메소드들

메소드 설명
AllowSetCookie ( IRequest req, string cookieName ) : bool
ApplyCustomHandlerRequestFilters ( IRequest httpReq, IResponse httpRes ) : bool

Apply PreRequest Filters for participating Custom Handlers, e.g. RazorFormat, MarkdownFormat, etc

ApplyMessageRequestFilters ( IRequest req, IResponse res, object requestDto ) : bool
ApplyMessageResponseFilters ( IRequest req, IResponse res, object response ) : bool
ApplyPreAuthenticateFilters ( IRequest httpReq, IResponse httpRes ) : void

Apply PreAuthenticate Filters from IAuthWithRequest AuthProviders

ApplyPreRequestFilters ( IRequest httpReq, IResponse httpRes ) : bool

Applies the raw request filters. Returns whether or not the request has been handled and no more processing should be done.

ApplyRequestConverters ( IRequest req, object requestDto ) : object
ApplyRequestFilters ( IRequest req, IResponse res, object requestDto ) : bool

Applies the request filters. Returns whether or not the request has been handled and no more processing should be done.

ApplyResponseConverters ( IRequest req, object responseDto ) : object
ApplyResponseFilters ( IRequest req, IResponse res, object response ) : bool

Applies the response filters. Returns whether or not the request has been handled and no more processing should be done.

AssertContentType ( string contentType ) : void
AssertFeatures ( Feature usesFeatures ) : void
ExecTypedFilters ( ITypedFilter>.Dictionary typedFilters, IRequest req, IResponse res, object dto ) : void
ExportSoapOperationTypes ( List operationTypes ) : List
ExportSoapType ( Type type ) : bool
GetAuthRepository ( IRequest req = null ) : IAuthRepository
GetCacheClient ( IRequest req ) : ICacheClient

Tries to resolve through Ioc container. If not registered, it falls back to .GetClient(); Called by itself, and

GetCookies ( IHttpResponse res ) : ICookies
GetCustomErrorHandler ( HttpStatusCode errorStatus ) : IServiceStackHandler
GetCustomErrorHandler ( int errorStatusCode ) : IServiceStackHandler
GetCustomErrorHttpHandler ( HttpStatusCode errorStatus ) : IHttpHandler
GetDbConnection ( IRequest req = null ) : IDbConnection

Gets IDbConnection Checks if DbInfo is seat in RequestContext. See multitenancy: https://github.com/ServiceStack/ServiceStack/wiki/Multitenancy Called by itself, and

GetDefaultSessionExpiry ( IRequest req ) : System.TimeSpan
GetMemoryCacheClient ( IRequest req ) : MemoryCacheClient

Returns . cache is only persisted for this running app instance. Called by .MemoryCacheClient

GetMessageProducer ( IRequest req = null ) : IMessageProducer

Returns from the IOC container. Called by itself, and

GetNotFoundHandler ( ) : IServiceStackHandler
GetRedisClient ( IRequest req = null ) : IRedisClient

Resolves based on .GetClient(); Called by itself, and

GetServiceGateway ( IRequest req ) : IServiceGateway
GetTypesConfigForMetadata ( IRequest req ) : MetadataTypesConfig
HandleErrorResponse ( IRequest httpReq, IResponse httpRes, HttpStatusCode errorStatus, string errorStatusDescription = null ) : void
HasAccessToMetadata ( IRequest httpReq, IResponse httpRes ) : bool
HasFeature ( Feature feature ) : bool
HasValidAuthSecret ( IRequest httpReq ) : bool
OnAfterExecute ( IRequest req, object requestDto, object response ) : object
OnExceptionTypeFilter ( Exception ex, ServiceStack.ResponseStatus responseStatus ) : void
OnLogError ( Type type, string message, Exception innerEx = null ) : void
OnSaveSession ( IRequest httpReq, IAuthSession session, System.TimeSpan expiresIn = null ) : void
OnSessionFilter ( IAuthSession session, string withSessionId ) : IAuthSession

Inspect or modify ever new UserSession created or resolved from cache. return null if Session is invalid to create new Session.

ResolveResponseException ( Exception ex ) : Exception
TryGetCurrentRequest ( ) : IRequest

보호된 메소드들

메소드 설명
ApplyRequestFiltersSingle ( IRequest req, IResponse res, object requestDto ) : bool
ApplyResponseFiltersSingle ( IRequest req, IResponse res, object response ) : bool

메소드 상세

AllowSetCookie() 공개 메소드

public AllowSetCookie ( IRequest req, string cookieName ) : bool
req IRequest
cookieName string
리턴 bool

ApplyCustomHandlerRequestFilters() 공개 메소드

Apply PreRequest Filters for participating Custom Handlers, e.g. RazorFormat, MarkdownFormat, etc
public ApplyCustomHandlerRequestFilters ( IRequest httpReq, IResponse httpRes ) : bool
httpReq IRequest
httpRes IResponse
리턴 bool

ApplyMessageRequestFilters() 공개 메소드

public ApplyMessageRequestFilters ( IRequest req, IResponse res, object requestDto ) : bool
req IRequest
res IResponse
requestDto object
리턴 bool

ApplyMessageResponseFilters() 공개 메소드

public ApplyMessageResponseFilters ( IRequest req, IResponse res, object response ) : bool
req IRequest
res IResponse
response object
리턴 bool

ApplyPreAuthenticateFilters() 공개 메소드

Apply PreAuthenticate Filters from IAuthWithRequest AuthProviders
public ApplyPreAuthenticateFilters ( IRequest httpReq, IResponse httpRes ) : void
httpReq IRequest
httpRes IResponse
리턴 void

ApplyPreRequestFilters() 공개 메소드

Applies the raw request filters. Returns whether or not the request has been handled and no more processing should be done.
public ApplyPreRequestFilters ( IRequest httpReq, IResponse httpRes ) : bool
httpReq IRequest
httpRes IResponse
리턴 bool

ApplyRequestConverters() 공개 메소드

public ApplyRequestConverters ( IRequest req, object requestDto ) : object
req IRequest
requestDto object
리턴 object

ApplyRequestFilters() 공개 메소드

Applies the request filters. Returns whether or not the request has been handled and no more processing should be done.
public ApplyRequestFilters ( IRequest req, IResponse res, object requestDto ) : bool
req IRequest
res IResponse
requestDto object
리턴 bool

ApplyRequestFiltersSingle() 보호된 메소드

protected ApplyRequestFiltersSingle ( IRequest req, IResponse res, object requestDto ) : bool
req IRequest
res IResponse
requestDto object
리턴 bool

ApplyResponseConverters() 공개 메소드

public ApplyResponseConverters ( IRequest req, object responseDto ) : object
req IRequest
responseDto object
리턴 object

ApplyResponseFilters() 공개 메소드

Applies the response filters. Returns whether or not the request has been handled and no more processing should be done.
public ApplyResponseFilters ( IRequest req, IResponse res, object response ) : bool
req IRequest
res IResponse
response object
리턴 bool

ApplyResponseFiltersSingle() 보호된 메소드

protected ApplyResponseFiltersSingle ( IRequest req, IResponse res, object response ) : bool
req IRequest
res IResponse
response object
리턴 bool

AssertContentType() 공개 메소드

public AssertContentType ( string contentType ) : void
contentType string
리턴 void

AssertFeatures() 공개 메소드

public AssertFeatures ( Feature usesFeatures ) : void
usesFeatures Feature
리턴 void

ExecTypedFilters() 공개 메소드

public ExecTypedFilters ( ITypedFilter>.Dictionary typedFilters, IRequest req, IResponse res, object dto ) : void
typedFilters ITypedFilter>.Dictionary
req IRequest
res IResponse
dto object
리턴 void

ExportSoapOperationTypes() 공개 메소드

public ExportSoapOperationTypes ( List operationTypes ) : List
operationTypes List
리턴 List

ExportSoapType() 공개 메소드

public ExportSoapType ( Type type ) : bool
type System.Type
리턴 bool

GetAuthRepository() 공개 메소드

public GetAuthRepository ( IRequest req = null ) : IAuthRepository
req IRequest
리턴 IAuthRepository

GetCacheClient() 공개 메소드

Tries to resolve through Ioc container. If not registered, it falls back to .GetClient(); Called by itself, and
public GetCacheClient ( IRequest req ) : ICacheClient
req IRequest Provided by services and pageView, can be helpfull when overriding this method
리턴 ICacheClient

GetCookies() 공개 메소드

public GetCookies ( IHttpResponse res ) : ICookies
res IHttpResponse
리턴 ICookies

GetCustomErrorHandler() 공개 메소드

public GetCustomErrorHandler ( HttpStatusCode errorStatus ) : IServiceStackHandler
errorStatus HttpStatusCode
리턴 IServiceStackHandler

GetCustomErrorHandler() 공개 메소드

public GetCustomErrorHandler ( int errorStatusCode ) : IServiceStackHandler
errorStatusCode int
리턴 IServiceStackHandler

GetCustomErrorHttpHandler() 공개 메소드

public GetCustomErrorHttpHandler ( HttpStatusCode errorStatus ) : IHttpHandler
errorStatus HttpStatusCode
리턴 IHttpHandler

GetDbConnection() 공개 메소드

Gets IDbConnection Checks if DbInfo is seat in RequestContext. See multitenancy: https://github.com/ServiceStack/ServiceStack/wiki/Multitenancy Called by itself, and
public GetDbConnection ( IRequest req = null ) : IDbConnection
req IRequest Provided by services and pageView, can be helpfull when overriding this method
리턴 IDbConnection

GetDefaultSessionExpiry() 공개 메소드

public GetDefaultSessionExpiry ( IRequest req ) : System.TimeSpan
req IRequest
리턴 System.TimeSpan

GetMemoryCacheClient() 공개 메소드

Returns . cache is only persisted for this running app instance. Called by .MemoryCacheClient
public GetMemoryCacheClient ( IRequest req ) : MemoryCacheClient
req IRequest Provided by services and pageView, can be helpfull when overriding this method
리턴 MemoryCacheClient

GetMessageProducer() 공개 메소드

Returns from the IOC container. Called by itself, and
public GetMessageProducer ( IRequest req = null ) : IMessageProducer
req IRequest Provided by services and PageViewBase, can be helpfull when overriding this method
리턴 IMessageProducer

GetNotFoundHandler() 공개 메소드

public GetNotFoundHandler ( ) : IServiceStackHandler
리턴 IServiceStackHandler

GetRedisClient() 공개 메소드

Resolves based on .GetClient(); Called by itself, and
public GetRedisClient ( IRequest req = null ) : IRedisClient
req IRequest Provided by services and pageView, can be helpfull when overriding this method
리턴 IRedisClient

GetServiceGateway() 공개 메소드

public GetServiceGateway ( IRequest req ) : IServiceGateway
req IRequest
리턴 IServiceGateway

GetTypesConfigForMetadata() 공개 메소드

public GetTypesConfigForMetadata ( IRequest req ) : MetadataTypesConfig
req IRequest
리턴 MetadataTypesConfig

HandleErrorResponse() 공개 메소드

public HandleErrorResponse ( IRequest httpReq, IResponse httpRes, HttpStatusCode errorStatus, string errorStatusDescription = null ) : void
httpReq IRequest
httpRes IResponse
errorStatus HttpStatusCode
errorStatusDescription string
리턴 void

HasAccessToMetadata() 공개 메소드

public HasAccessToMetadata ( IRequest httpReq, IResponse httpRes ) : bool
httpReq IRequest
httpRes IResponse
리턴 bool

HasFeature() 공개 메소드

public HasFeature ( Feature feature ) : bool
feature Feature
리턴 bool

HasValidAuthSecret() 공개 메소드

public HasValidAuthSecret ( IRequest httpReq ) : bool
httpReq IRequest
리턴 bool

OnAfterExecute() 공개 메소드

public OnAfterExecute ( IRequest req, object requestDto, object response ) : object
req IRequest
requestDto object
response object
리턴 object

OnExceptionTypeFilter() 공개 메소드

public OnExceptionTypeFilter ( Exception ex, ServiceStack.ResponseStatus responseStatus ) : void
ex System.Exception
responseStatus ServiceStack.ResponseStatus
리턴 void

OnLogError() 공개 메소드

public OnLogError ( Type type, string message, Exception innerEx = null ) : void
type System.Type
message string
innerEx System.Exception
리턴 void

OnSaveSession() 공개 메소드

public OnSaveSession ( IRequest httpReq, IAuthSession session, System.TimeSpan expiresIn = null ) : void
httpReq IRequest
session IAuthSession
expiresIn System.TimeSpan
리턴 void

OnSessionFilter() 공개 메소드

Inspect or modify ever new UserSession created or resolved from cache. return null if Session is invalid to create new Session.
public OnSessionFilter ( IAuthSession session, string withSessionId ) : IAuthSession
session IAuthSession
withSessionId string
리턴 IAuthSession

ResolveResponseException() 공개 메소드

public ResolveResponseException ( Exception ex ) : Exception
ex System.Exception
리턴 System.Exception

TryGetCurrentRequest() 공개 메소드

public TryGetCurrentRequest ( ) : IRequest
리턴 IRequest