Table of Contents

Interface IAnybillClientAuthModule

Namespace
anybill.POS.Client.Modules
Assembly
anybill.POS.Client.Abstractions.dll

Authentication module of the IAnybillClient.

public interface IAnybillClientAuthModule

Properties

CurrentAuthTokenProvider

Gets or sets the current used IAuthTokenProvider.

IAuthTokenProvider CurrentAuthTokenProvider { get; set; }

Property Value

IAuthTokenProvider

Methods

EnsureAsync(bool, CancellationToken)

Initializes authentication.

Task EnsureAsync(bool reAuthenticate, CancellationToken cancellationToken = default)

Parameters

reAuthenticate bool

Whether to request a new authentication token.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

Remarks

Prepares the IAnybillClient for the first use. Can be used to test authentication if reAuthenticate is set to true.

EnsureAsync(CancellationToken)

Initializes authentication.

Task EnsureAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

Task

Remarks

Prepares the IAnybillClient for the first use.