IsAuthenticatedValidator
Assembly: ServiceStack.dll
View Source
Declaration
public class IsAuthenticatedValidator : TypeValidator, ITypeValidator, IAuthTypeValidator
Properties
DefaultErrorMessage
View Source
Declaration
public static string DefaultErrorMessage { get; set; }
Instance
View Source
Declaration
public static IsAuthenticatedValidator Instance { get; }
Provider
View Source
Declaration
public string Provider { get; }
Inherited Properties
ContextArgs
View Source
Declaration
public Dictionary<string, object> ContextArgs { 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; }
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; }
Methods
IsValidAsync(Object, IRequest)
View Source
Declaration
public override async Task<bool> IsValidAsync(object dto, IRequest request)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.Object | dto |
ServiceStack.Web.IRequest | request |
Inherited Methods
IsValid(Object, IRequest)
View Source
Declaration
public virtual bool IsValid(object dto, IRequest request)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | dto |
ServiceStack.Web.IRequest | request |
IsValidAsync(Object, IRequest)
View Source
Declaration
public virtual Task<bool> IsValidAsync(object dto, IRequest request)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
System.Object | dto |
ServiceStack.Web.IRequest | request |
ResolveErrorCode()
View Source
Declaration
protected string ResolveErrorCode()
Returns
System.String
ResolveErrorMessage(IRequest, Object)
View Source
Declaration
protected string ResolveErrorMessage(IRequest request, object dto)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
System.Object | dto |
ResolveStatusCode()
View Source
Declaration
protected int ResolveStatusCode()
Returns
System.Int32
ThrowIfNotValidAsync(Object, IRequest)
View Source
Declaration
public virtual async Task ThrowIfNotValidAsync(object dto, IRequest request)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Object | dto |
ServiceStack.Web.IRequest | request |