Skip to main content

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

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