Table of Contents

Class SessionAuthenticator<T>

Namespace: XboxAuthNet.Game.Authenticators
Assembly: XboxAuthNet.Game.dll

public abstract class SessionAuthenticator<T> : IAuthenticator

Type Parameters

T

Inheritance

objectSessionAuthenticator<T>

Implements

IAuthenticator

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

ISessionSource<T>

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

ValueTask

GetSessionFromStorage()

protected T? GetSessionFromStorage()

Returns

T?