Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

GoogleApisDataStoreAdapter

Namespace OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Assembly OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Source revision 33d062b583cb with working tree changes
Implements
IDataStore
Modifiers sealed

Bridges an OfficeIMO token store to the data-store contract used by Google.Apis.Auth.

Inheritance

  • Object
  • GoogleApisDataStoreAdapter

Constructors

public GoogleApisDataStoreAdapter(IGoogleWorkspaceTokenStore store) #

Creates an adapter over an application-owned secure token store.

Parameters

store OfficeIMO.GoogleWorkspace.Auth.GoogleApis.IGoogleWorkspaceTokenStore requiredposition: 0
Token store to expose through Google's data-store contract.

Methods

public Task ClearAsync() #
Returns: Task

Deletes all authorization state owned by this store.

public Task DeleteAsync<T>(String key) #
Returns: Task

Deletes authorization state of the requested type under a key.

Type Parameters

T

Parameters

key System.String requiredposition: 0
public Task<T?> GetAsync<T>(String key) #
Returns: Task<T?>

Reads authorization state, returning null when the key is absent.

Type Parameters

T

Parameters

key System.String requiredposition: 0
public Task StoreAsync<T>(String key, T? value) #
Returns: Task

Stores or replaces authorization state under a key.

Type Parameters

T

Parameters

key System.String requiredposition: 0
value T? requiredposition: 1