Skip to main content

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
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.Objectresponse

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
TypeNameDescription
ServiceStack.Web.IRequestreqThe 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