RegisterUserAuthServiceBase
Register Base class for IAuthRepository / IUserAuth users
Assembly: ServiceStack.dll
View Source
Declaration
public abstract class RegisterUserAuthServiceBase : RegisterServiceBase, IService, IServiceBase, IRequiresRequest, IResolver, IDisposable, IServiceFilters, IServiceBeforeFilter, IServiceAfterFilter, IServiceErrorFilter
Properties
RegistrationValidator
View Source
Declaration
public IValidator<Register> RegistrationValidator { get; set; }
Methods
ToUser(Register)
View Source
Declaration
protected virtual IUserAuth ToUser(Register request)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Register | request |
UserExistsAsync(IAuthSession)
View Source
Declaration
protected virtual async Task<bool> UserExistsAsync(IAuthSession session)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | session |
ValidateAndThrowAsync(Register)
View Source
Declaration
protected virtual async Task ValidateAndThrowAsync(Register request)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Register | request |
RegisterNewUserAsync(IAuthSession, IUserAuth)
View Source
Declaration
protected virtual async Task RegisterNewUserAsync(IAuthSession session, IUserAuth user)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | session |
ServiceStack.Auth.IUserAuth | user |
Inherited Methods
CreateRegisterResponse(IAuthSession, String, String, Nullable<Boolean>)
View Source
Declaration
protected virtual async Task<object> CreateRegisterResponse(IAuthSession session, string userName, string password, bool? autoLogin = null)
Returns
System.Threading.Tasks.Task<System.Object>
Parameters
Type | Name |
---|---|
ServiceStack.Auth.IAuthSession | session |
System.String | userName |
System.String | password |
System.Nullable<System.Boolean> | autoLogin |