Table of Contents

Class AuthenticationResult<T, U>

Namespace
The.Security
Assembly
Instagile.dll

Represents the result of an authentication operation with two typed results.

public class AuthenticationResult<T, U>

Type Parameters

T
U
Inheritance
AuthenticationResult<T, U>
Inherited Members

Properties

Error

public AuthenticationFailure? Error { get; }

Property Value

AuthenticationFailure

HasValue

public bool HasValue { get; }

Property Value

bool

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

error AuthenticationFailure

Returns

AuthenticationResult<T, U>

Select<V>(Func<T, U, V>)

public AuthenticationResult<V> Select<V>(Func<T, U, V> f)

Parameters

f Func<T, U, V>

Returns

AuthenticationResult<V>

Type Parameters

V

Success(T, U)

public static AuthenticationResult<T, U> Success(T result1, U result2)

Parameters

result1 T
result2 U

Returns

AuthenticationResult<T, U>