ResponseFilterAsyncAttribute
Base class to create response filter attributes only for specific HTTP methods (GET, POST...)
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class ResponseFilterAsyncAttribute : AttributeBase, _Attribute, IHasResponseFilterAsync, IResponseFilterBase
Properties
Priority
View Source
Declaration
public int Priority { get; set; }
ApplyTo
View Source
Declaration
public ApplyTo ApplyTo { get; set; }
Methods
ResponseFilterAsync(IRequest, IResponse, Object)
View Source
Declaration
public Task ResponseFilterAsync(IRequest req, IResponse res, object response)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | response |
ExecuteAsync(IRequest, IResponse, Object)
This method is only executed if the HTTP method matches the ServiceStack.ResponseFilterAsyncAttribute.ApplyTo property.
View Source
Declaration
public abstract Task ExecuteAsync(IRequest req, IResponse res, object responseDto)
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
| responseDto | The response DTO
|
Copy()
Create a ShallowCopy of this instance.
View Source
Declaration
public virtual IResponseFilterBase Copy()
Returns
ServiceStack.Web.IResponseFilterBase
Implements
System.Runtime.InteropServices._Attribute
- ServiceStack.Web.IHasResponseFilterAsync
- ServiceStack.Web.IResponseFilterBase