RequestFilterAsyncAttribute
Base class to create request filter attributes only for specific HTTP methods (GET, POST...)
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class RequestFilterAsyncAttribute : AttributeBase, _Attribute, IHasRequestFilterAsync, IRequestFilterBase
Properties
Priority
View Source
Declaration
public int Priority { get; set; }
ApplyTo
View Source
Declaration
public ApplyTo ApplyTo { get; set; }
Methods
RequestFilterAsync(IRequest, IResponse, Object)
View Source
Declaration
public Task RequestFilterAsync(IRequest req, IResponse res, object requestDto)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | requestDto |
ExecuteAsync(IRequest, IResponse, Object)
This method is only executed if the HTTP method matches the ServiceStack.RequestFilterAsyncAttribute.ApplyTo property.
View Source
Declaration
public abstract Task ExecuteAsync(IRequest req, IResponse res, object requestDto)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name | Description |
---|---|---|
ServiceStack.Web.IRequest | req | The http request wrapper |
| | ServiceStack.Web.IResponse | res | The http response wrapper
|
| System.Object
| requestDto | The request DTO
|
Copy()
Create a ShallowCopy of this instance.
View Source
Declaration
public virtual IRequestFilterBase Copy()
Returns
ServiceStack.Web.IRequestFilterBase
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.Web.IHasRequestFilterAsync
- ServiceStack.Web.IRequestFilterBase