Class AuthClient
- Namespace
- Coherence.Cloud
- Assembly
- Coherence.Runtime.dll
public class AuthClient : IAuthClient
- Inheritance
-
AuthClient
- Implements
-
Constructors
AuthClient(string, bool, string, IRequestFactory)
public AuthClient(string uniqueId, bool autoLoginAsGuest, string projectId, IRequestFactory requestFactory)
Parameters
uniqueId
string
autoLoginAsGuest
bool
projectId
string
requestFactory
IRequestFactory
Properties
GuestPassword
public string GuestPassword { get; }
Property Value
- string
LoggedIn
public bool LoggedIn { get; }
Property Value
- bool
SessionToken
public string SessionToken { get; }
Property Value
- string
UserName
public string UserName { get; }
Property Value
- string
Methods
Dispose()
LoginAsGuest()
public Task<Result> LoginAsGuest()
Returns
- Task<Result>
LoginWithPassword(string, string, bool)
public Task<Result> LoginWithPassword(string userNameParam, string password, bool autosignup)
Parameters
userNameParam
string
password
string
autosignup
bool
Returns
- Task<Result>
Logout()
RefreshSession()
public Task<Result> RefreshSession()
Returns
- Task<Result>
Events
OnLogin
public event Action<LoginResponse> OnLogin
Event Type
- Action<LoginResponse>
OnLogout
public event Action OnLogout
Event Type
- Action