Class SessionAuthenticator<T>
Namespace: XboxAuthNet.Game.Authenticators
Assembly: XboxAuthNet.Game.dll
public abstract class SessionAuthenticator<T> : IAuthenticator
Type Parameters
T
Inheritance
object ← SessionAuthenticator<T>
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SessionAuthenticator(ISessionSource<T>)
public SessionAuthenticator(ISessionSource<T> sessionSource)
Parameters
sessionSource ISessionSource<T>
Properties
SessionSource
public ISessionSource<T> SessionSource { get; }
Property Value
Methods
Authenticate(AuthenticateContext)
protected abstract ValueTask<T?> Authenticate(AuthenticateContext context)
Parameters
context AuthenticateContext
Returns
ValueTask<T?>
ExecuteAsync(AuthenticateContext)
public ValueTask ExecuteAsync(AuthenticateContext context)
Parameters
context AuthenticateContext
Returns
GetSessionFromStorage()
protected T? GetSessionFromStorage()
Returns
T?