Class AuthenticationResult<T>
Represents the result of an authentication operation with a typed result.
public class AuthenticationResult<T>
Type Parameters
T
- Inheritance
-
AuthenticationResult<T>
- Inherited Members
Properties
Error
public AuthenticationFailure? Error { get; }
Property Value
HasValue
public bool HasValue { get; }
Property Value
Result
public T? Result { get; }
Property Value
- T
Methods
Failure(AuthenticationFailure)
public static AuthenticationResult<T> Failure(AuthenticationFailure error)
Parameters
errorAuthenticationFailure
Returns
SelectAsync<U>(Func<T, CancellationToken, Task<U>>)
public Task<AuthenticationResult<U>> SelectAsync<U>(Func<T, CancellationToken, Task<U>> f)
Parameters
fFunc<T, CancellationToken, Task<U>>
Returns
Type Parameters
U
SelectManyAsync<U>(Func<T, CancellationToken, Task<AuthenticationResult<U>>>)
public Task<AuthenticationResult<U>> SelectManyAsync<U>(Func<T, CancellationToken, Task<AuthenticationResult<U>>> f)
Parameters
fFunc<T, CancellationToken, Task<AuthenticationResult<U>>>
Returns
Type Parameters
U
SelectMany<U>(Func<T, AuthenticationResult<U>>)
public AuthenticationResult<U> SelectMany<U>(Func<T, AuthenticationResult<U>> f)
Parameters
fFunc<T, AuthenticationResult<U>>
Returns
Type Parameters
U
Select<U>(Func<T, U>)
public AuthenticationResult<U> Select<U>(Func<T, U> f)
Parameters
fFunc<T, U>
Returns
Type Parameters
U
Success(T)
public static AuthenticationResult<T> Success(T result)
Parameters
resultT