Table of Contents

Class AuthenticationResult<T>

Namespace
The.Security
Assembly
Instagile.dll

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

AuthenticationFailure

HasValue

public bool HasValue { get; }

Property Value

bool

Result

public T? Result { get; }

Property Value

T

Methods

Failure(AuthenticationFailure)

public static AuthenticationResult<T> Failure(AuthenticationFailure error)

Parameters

error AuthenticationFailure

Returns

AuthenticationResult<T>

SelectAsync<U>(Func<T, CancellationToken, Task<U>>)

public Task<AuthenticationResult<U>> SelectAsync<U>(Func<T, CancellationToken, Task<U>> f)

Parameters

f Func<T, CancellationToken, Task<U>>

Returns

Task<AuthenticationResult<U>>

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

f Func<T, CancellationToken, Task<AuthenticationResult<U>>>

Returns

Task<AuthenticationResult<U>>

Type Parameters

U

SelectMany<U>(Func<T, AuthenticationResult<U>>)

public AuthenticationResult<U> SelectMany<U>(Func<T, AuthenticationResult<U>> f)

Parameters

f Func<T, AuthenticationResult<U>>

Returns

AuthenticationResult<U>

Type Parameters

U

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

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

Parameters

f Func<T, U>

Returns

AuthenticationResult<U>

Type Parameters

U

Success(T)

public static AuthenticationResult<T> Success(T result)

Parameters

result T

Returns

AuthenticationResult<T>