Class InMemoryTokenStorage
Simple ITokenStorage implementation
Inheritance
System.Object
InMemoryTokenStorage
Implements
Namespace: Dangl.RestClient
Assembly: Dangl.RestClient.dll
Syntax
public class InMemoryTokenStorage : object, ITokenStorage
Methods
| Improve this Doc View SourceGetTokenAsync()
Returns either the saved token or null
Declaration
public Task<OAuthToken> GetTokenAsync()
Returns
| Type | Description |
|---|---|
| Task<OAuthToken> |
StoreTokenAsync(OAuthToken)
Saves the token in memory
Declaration
public Task StoreTokenAsync(OAuthToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| OAuthToken | token |
Returns
| Type | Description |
|---|---|
| Task |