Skip to main content

TypeValidator

Assembly: ServiceStack.dll
View Source
Declaration
public abstract class TypeValidator : ITypeValidator

Properties

ErrorCode

View Source
Declaration
public string ErrorCode { get; set; }

Message

View Source
Declaration
public string Message { get; set; }

StatusCode

View Source
Declaration
public int? StatusCode { get; set; }

DefaultErrorCode

View Source
Declaration
public string DefaultErrorCode { get; set; }

DefaultMessage

View Source
Declaration
public string DefaultMessage { get; set; }

DefaultStatusCode

View Source
Declaration
public int? DefaultStatusCode { get; set; }

ContextArgs

View Source
Declaration
public Dictionary<string, object> ContextArgs { get; set; }

Methods

ResolveErrorMessage(IRequest, Object)

View Source
Declaration
protected string ResolveErrorMessage(IRequest request, object dto)
Returns

System.String

Parameters
TypeName
ServiceStack.Web.IRequestrequest
System.Objectdto

ResolveStatusCode()

View Source
Declaration
protected int ResolveStatusCode()
Returns

System.Int32

ResolveErrorCode()

View Source
Declaration
protected string ResolveErrorCode()
Returns

System.String

IsValid(Object, IRequest)

View Source
Declaration
public virtual bool IsValid(object dto, IRequest request)
Returns

System.Boolean

Parameters
TypeName
System.Objectdto
ServiceStack.Web.IRequestrequest

IsValidAsync(Object, IRequest)

View Source
Declaration
public virtual Task<bool> IsValidAsync(object dto, IRequest request)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Objectdto
ServiceStack.Web.IRequestrequest

ThrowIfNotValidAsync(Object, IRequest)

View Source
Declaration
public virtual async Task ThrowIfNotValidAsync(object dto, IRequest request)
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Objectdto
ServiceStack.Web.IRequestrequest

Implements