Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleApisDataStoreAdapter

OfficeIMO.GoogleWorkspace.Auth.GoogleApis

Namespace
OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Assembly
OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Source revision
be6c300e4ab1 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 required
Token store to expose through Google's data-store contract.

Methods

public Task ClearAsync() #

Deletes all authorization state owned by this store.

Returns

Task
public Task DeleteAsync<T>(string key) #

Deletes authorization state of the requested type under a key.

Type Parameters

T

Parameters

key string required

Returns

Task
public Task<T?> GetAsync<T>(string key) #

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

Type Parameters

T

Parameters

key string required

Returns

Task<T?>
public Task StoreAsync<T>(string key, T? value) #

Stores or replaces authorization state under a key.

Type Parameters

T

Parameters

key string required
value T? required

Returns

Task