Interface IAccessTokenExchanger<T1, T2>
An interface to exchange a T1 input value for a T2 output value.
Namespace: Unity.Cloud.Identity
Assembly: Unity.Cloud.Identity.dll
Syntax
public interface IAccessTokenExchanger<T1, T2>
Type Parameters
Name | Description |
---|---|
T1 | An input token type. |
T2 | An output token type. |
Methods
ExchangeAsync(T1)
Returns a T2 exchanged token
Declaration
Task<T2> ExchangeAsync(T1 exchangeToken)
Parameters
Type | Name | Description |
---|---|---|
T1 | exchangeToken | The token input value of type T1. |
Returns
Type | Description |
---|---|
Task<T2> | A task that once completed returns a T2 exchanged token from a T1 input value. |