Show / Hide Table of Contents

    Class InMemoryTokenStorage

    Simple ITokenStorage implementation

    Inheritance
    System.Object
    InMemoryTokenStorage
    Implements
    ITokenStorage
    Namespace: Dangl.RestClient
    Assembly: Dangl.RestClient.dll
    Syntax
    public class InMemoryTokenStorage : object, ITokenStorage

    Methods

    | Improve this Doc View Source

    GetTokenAsync()

    Returns either the saved token or null

    Declaration
    public Task<OAuthToken> GetTokenAsync()
    Returns
    Type Description
    Task<OAuthToken>
    | Improve this Doc View Source

    StoreTokenAsync(OAuthToken)

    Saves the token in memory

    Declaration
    public Task StoreTokenAsync(OAuthToken token)
    Parameters
    Type Name Description
    OAuthToken token
    Returns
    Type Description
    Task

    Implements

    ITokenStorage
    • Improve this Doc
    • View Source
    Back to top © Dangl IT - Georg Dangl