Skip to main content

ValidationFilters

Assembly: ServiceStack.dll
View Source
Declaration
public static class ValidationFilters

Methods

RequestFilterAsync(IRequest, IResponse, Object)

View Source
Declaration
public static async Task RequestFilterAsync(IRequest req, IResponse res, object requestDto)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.ObjectrequestDto

RequestFilterAsyncIgnoreWarningsInfo(IRequest, IResponse, Object)

View Source
Declaration
public static async Task RequestFilterAsyncIgnoreWarningsInfo(IRequest req, IResponse res, object requestDto)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.ObjectrequestDto

ResponseFilterAsync(IRequest, IResponse, Object)

View Source
Declaration
public static async Task ResponseFilterAsync(IRequest req, IResponse res, object requestDto)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.Web.IResponseres
System.ObjectrequestDto

ValidateAsync(IValidator, IRequest, Object)

View Source
Declaration
public static async Task<ValidationResult> ValidateAsync(this IValidator validator, IRequest req, object requestDto)
Returns

System.Threading.Tasks.Task<ServiceStack.FluentValidation.Results.ValidationResult>

Parameters
TypeName
ServiceStack.FluentValidation.IValidatorvalidator
ServiceStack.Web.IRequestreq
System.ObjectrequestDto

Validate(IValidator, IRequest, Object)

View Source
Declaration
public static ValidationResult Validate(this IValidator validator, IRequest req, object requestDto)
Returns

ServiceStack.FluentValidation.Results.ValidationResult

Parameters
TypeName
ServiceStack.FluentValidation.IValidatorvalidator
ServiceStack.Web.IRequestreq
System.ObjectrequestDto

GetResetFields(Object)

View Source
Declaration
public static IEnumerable<string> GetResetFields(object o)
Returns

System.Collections.Generic.IEnumerable<System.String>

Parameters
TypeName
System.Objecto

GetResetFields(IRequest)

View Source
Declaration
public static IEnumerable<string> GetResetFields(this IRequest req)
Returns

System.Collections.Generic.IEnumerable<System.String>

Parameters
TypeName
ServiceStack.Web.IRequestreq