Class AuthenticationResult<T, U>
Represents the result of an authentication operation with two typed results.
public class AuthenticationResult<T, U>
Type Parameters
TU
- Inheritance
-
AuthenticationResult<T, U>
- Inherited Members
Properties
Error
public AuthenticationFailure? Error { get; }
Property Value
HasValue
public bool HasValue { get; }
Property Value
Result1
public T? Result1 { get; }
Property Value
- T
Result2
public U? Result2 { get; }
Property Value
- U
Methods
Failure(AuthenticationFailure)
public static AuthenticationResult<T, U> Failure(AuthenticationFailure error)
Parameters
errorAuthenticationFailure
Returns
- AuthenticationResult<T, U>
Select<V>(Func<T, U, V>)
public AuthenticationResult<V> Select<V>(Func<T, U, V> f)
Parameters
fFunc<T, U, V>
Returns
Type Parameters
V
Success(T, U)
public static AuthenticationResult<T, U> Success(T result1, U result2)
Parameters
result1Tresult2U
Returns
- AuthenticationResult<T, U>