ServiceRunner<TRequest>
Assembly: ServiceStack.dll
View Source
Declaration
public class ServiceRunner<TRequest> : IServiceRunner<TRequest>, IServiceRunner
Fields
Log
View Source
Declaration
protected static readonly ILog Log
AppHost
View Source
Declaration
protected readonly IAppHost AppHost
ActionContext
View Source
Declaration
protected readonly ActionContext ActionContext
ServiceAction
View Source
Declaration
protected readonly ActionInvokerFn ServiceAction
RequestFilters
View Source
Declaration
protected readonly IRequestFilterBase[] RequestFilters
ResponseFilters
View Source
Declaration
protected readonly IResponseFilterBase[] ResponseFilters
Methods
ResolveService<T>(IRequest)
View Source
Declaration
public T ResolveService<T>(IRequest requestContext)
Returns
<T>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | requestContext |
Type Parameters
T
BeforeEachRequest(IRequest, TRequest, Object)
View Source
Declaration
public virtual void BeforeEachRequest(IRequest req, TRequest request, object service)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | request |
System.Object | service |
AfterEachRequest(IRequest, TRequest, Object, Object)
View Source
Declaration
public virtual object AfterEachRequest(IRequest req, TRequest request, object response, object service)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | request |
System.Object | response |
System.Object | service |
OnBeforeExecute(IRequest, TRequest)
View Source
Declaration
[Obsolete("Use OnBeforeExecute(req, requestDto, service)")]
public virtual void OnBeforeExecute(IRequest req, TRequest request)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | request |
OnBeforeExecute(IRequest, TRequest, Object)
View Source
Declaration
public virtual void OnBeforeExecute(IRequest req, TRequest request, object service)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | request |
System.Object | service |
OnAfterExecute(IRequest, Object)
View Source
Declaration
[Obsolete("Use OnAfterExecute(req, requestDto, service)")]
public virtual object OnAfterExecute(IRequest req, object response)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
OnAfterExecute(IRequest, Object, Object)
View Source
Declaration
public virtual object OnAfterExecute(IRequest req, object response, object service)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.Object | service |
Execute(IRequest, Object, TRequest)
View Source
Declaration
[Obsolete("Override ExecuteAsync instead")]
public virtual object Execute(IRequest req, object instance, TRequest requestDto)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | instance |
<TRequest> | requestDto |
ExecuteAsync(IRequest, Object, TRequest)
View Source
Declaration
public virtual async Task<object> ExecuteAsync(IRequest req, object instance, TRequest requestDto)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | instance |
<TRequest> | requestDto |
Execute(IRequest, Object, IMessage<TRequest>)
View Source
Declaration
public virtual object Execute(IRequest req, object instance, IMessage<TRequest> request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | instance |
ServiceStack.Messaging.IMessage<T> | request |
HandleExceptionAsync(IRequest, TRequest, Exception)
View Source
Declaration
[Obsolete("Use HandleExceptionAsync(req, requestDto, ex, service)")]
public virtual Task<object> HandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | requestDto |
System.Exception | ex |
ManagedHandleExceptionAsync(IRequest, TRequest, Exception, Object)
View Source
Declaration
protected async Task<object> ManagedHandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex, object service)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | requestDto |
System.Exception | ex |
System.Object | service |
HandleExceptionAsync(IRequest, TRequest, Exception, Object)
View Source
Declaration
public virtual async Task<object> HandleExceptionAsync(IRequest req, TRequest requestDto, Exception ex, object service)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
<TRequest> | requestDto |
System.Exception | ex |
System.Object | service |
ExecuteOneWay(IRequest, Object, TRequest)
View Source
Declaration
public object ExecuteOneWay(IRequest req, object instance, TRequest requestDto)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | instance |
<TRequest> | requestDto |
Process(IRequest, Object, Object)
View Source
Declaration
public object Process(IRequest requestContext, object instance, object request)
Returns
System.Object
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | requestContext |
System.Object | instance |
System.Object | request |