Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(405)

Unified Diff: Src/GoogleApis/Apis/Util/Store/IDataStore.cs

Issue 13972043: Issue 351: Reimplement OAuth2 (Step 3 - Tests, Flows and Credential) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Src/GoogleApis/Apis/Util/IClock.cs ('k') | Src/GoogleApis/Apis/Util/Utilities.cs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Src/GoogleApis/Apis/Util/Store/IDataStore.cs
===================================================================
--- a/Src/GoogleApis/Apis/Util/Store/IDataStore.cs
b/Src/GoogleApis/Apis/Util/Store/IDataStore.cs
@@ -27,27 27,27 @@
/// </summary>
public interface IDataStore
{
- /// <summary>Stores the given value for the given key (replacing any existing value).</summary>
/// <summary>Asynchronously stores the given value for the given key (replacing any existing value).</summary>
/// <typeparam name="T">The type to store in the data store</typeparam>
/// <param name="key">The key</param>
/// <param name="value">The value to store</param>
- Task Store<T>(string key, T value);
Task StoreAsync<T>(string key, T value);
/// <summary>
- /// Deletes the given key. The type is provided here as well because the "real" saved key should contain
- /// type information as well, so the data store will be able to store the same key for different types.
/// Asynchronously deletes the given key. The type is provided here as well because the "real" saved key should
/// contain type information as well, so the data store will be able to store the same key for different types.
/// </summary>
/// <typeparam name="T">The type to delete from the data store</typeparam>
/// <param name="key">The key to delete</param>
- Task Delete<T>(string key);
Task DeleteAsync<T>(string key);
- /// <summary>Returns the stored value for the given key or <c>null</c> if not found.</summary>
/// <summary>Asynchronously returns the stored value for the given key or <c>null</c> if not found.</summary>
/// <typeparam name="T">The type to retrieve from the data store</typeparam>
/// <param name="key">The key to retrieve its value</param>
/// <returns>The stored object</returns>
- Task<T> Get<T>(string key);
Task<T> GetAsync<T>(string key);
- /// <summary>Clears all values in the data store.</summary>
- Task Clear();
/// <summary>Asynchronously clears all values in the data store.</summary>
Task ClearAsync();
}
}
« no previous file with comments | « Src/GoogleApis/Apis/Util/IClock.cs ('k') | Src/GoogleApis/Apis/Util/Utilities.cs » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b