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
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | requestDto |
RequestFilterAsyncIgnoreWarningsInfo(IRequest, IResponse, Object)
View Source
Declaration
public static async Task RequestFilterAsyncIgnoreWarningsInfo(IRequest req, IResponse res, object requestDto)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | requestDto |
ResponseFilterAsync(IRequest, IResponse, Object)
View Source
Declaration
public static async Task ResponseFilterAsync(IRequest req, IResponse res, object requestDto)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
ServiceStack.Web.IResponse | res |
System.Object | requestDto |
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
Type | Name |
---|---|
ServiceStack.FluentValidation.IValidator | validator |
ServiceStack.Web.IRequest | req |
System.Object | requestDto |
Validate(IValidator, IRequest, Object)
View Source
Declaration
public static ValidationResult Validate(this IValidator validator, IRequest req, object requestDto)
Returns
ServiceStack.FluentValidation.Results.ValidationResult
Parameters
Type | Name |
---|---|
ServiceStack.FluentValidation.IValidator | validator |
ServiceStack.Web.IRequest | req |
System.Object | requestDto |
GetResetFields(Object)
View Source
Declaration
public static IEnumerable<string> GetResetFields(object o)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
Type | Name |
---|---|
System.Object | o |
GetResetFields(IRequest)
View Source
Declaration
public static IEnumerable<string> GetResetFields(this IRequest req)
Returns
System.Collections.Generic.IEnumerable<System.String>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |