Skip to main content

RequestFilterAttribute

Base class to create request filter attributes only for specific HTTP methods (GET, POST...)

Assembly: ServiceStack.dll
View Source
Declaration
public abstract class RequestFilterAttribute : AttributeBase, _Attribute, IHasRequestFilter, IRequestFilterBase

Properties

Priority

View Source
Declaration
public int Priority { get; set; }

ApplyTo

View Source
Declaration
public ApplyTo ApplyTo { get; set; }

Methods

RequestFilter(IRequest, IResponse, Object)

View Source
Declaration
public void RequestFilter(IRequest req, IResponse res, object requestDto)
Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.ObjectrequestDto

Execute(IRequest, IResponse, Object)

This method is only executed if the HTTP method matches the ServiceStack.RequestFilterAttribute.ApplyTo property.

View Source
Declaration
public abstract void Execute(IRequest req, IResponse res, object requestDto)
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