Class
GoogleApisDataStoreAdapter
OfficeIMO.GoogleWorkspace.Auth.GoogleApis
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
- Token store to expose through Google's data-store contract.
Methods
public Task DeleteAsync<T>(string key) #Deletes authorization state of the requested type under a key.
Type Parameters
- T
Parameters
- key string
Returns
Taskpublic Task<T?> GetAsync<T>(string key) #Reads authorization state, returning null when the key is absent.
Type Parameters
- T
Parameters
- key string
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
- value T?
Returns
Task