ASKRestHandler
Members
Namespace: ASPSecurityKit.ServiceStack
Assembly: ASPSecurityKit.ServiceStack.dll
Summary
Extends RestHandler to initialize ISecurityPipeline and other custom objects at request scope.
Constructors
#ctor(beforeRequestProcess)
Summary
Initializes a new instance of the ASKRestHandler class.
Parameters
Name | Type | Description |
---|---|---|
beforeRequestProcess | System.Action{ServiceStack.Web.IRequest,ServiceStack.Web.IResponse,System.String} | A delegate that will be called before the request processing begins (by ProcessRequestAsync. You should initialize any request scoped objects that you need to access in both filters and service method via this delegate. |
Methods
ProcessRequestAsync(httpReq,httpRes,operationName)
Summary
Initializes ISecurityPipeline and other custom objects (via delegate) before the async request begins processing. This is to ensure that these request scoped objects remain in scope (on the async call context) for both filters and service method.
Parameters
Name | Type | Description |
---|---|---|
httpReq | ServiceStack.Web.IRequest | The request. |
httpRes | ServiceStack.Web.IResponse | The response. |
operationName | System.String | Name of the operation. |