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

Delta Between Two Patch Sets: Src/GoogleApis.DotNet4/Apis/Util/Store/FileDataStore.cs

Issue 13632059: Issue 351: Reimplement OAuth2 - Step 2 (Auth PCL - only data types) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: Created 10 years, 10 months ago
Right Patch Set: minor Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « Src/GoogleApis.Auth/packages.config ('k') | Src/GoogleApis/Apis/Util/Utilities.cs » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 Copyright 2011 Google Inc 2 Copyright 2011 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, 11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. 14 limitations under the License.
15 */ 15 */
16 16
17 using System; 17 using System;
18 using System.IO; 18 using System.IO;
19 using System.Threading.Tasks; 19 using System.Threading.Tasks;
20 20
21 using Google.Apis.Util.Store; 21 using Google.Apis.Util.Store;
22 using Google.Apis.Json; 22 using Google.Apis.Json;
23 23
24 namespace Google.Apis.Apis.Util.Store 24 namespace Google.Apis.Util.Store
25 { 25 {
26 /// <summary> 26 /// <summary>
27 /// File data store that implements <seealso cref="IDataStore"/>. This store creates a different file for each· 27 /// File data store that implements <seealso cref="IDataStore"/>. This store creates a different file for each·
28 /// combination of type and key. This file data store stores a JSON format o f the specified object. 28 /// combination of type and key. This file data store stores a JSON format o f the specified object.
29 /// </summary> 29 /// </summary>
30 public class FileDataStore : IDataStore 30 public class FileDataStore : IDataStore
31 { 31 {
32 readonly string folderPath; 32 readonly string folderPath;
33 /// <summary>Gets the full folder path.</summary> 33 /// <summary>Gets the full folder path.</summary>
34 public string FolderPath { get { return folderPath; } } 34 public string FolderPath { get { return folderPath; } }
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 /// <summary>Creates a unique stored key based on the key and the class type.</summary> 138 /// <summary>Creates a unique stored key based on the key and the class type.</summary>
139 /// <param name="key">The object key</param> 139 /// <param name="key">The object key</param>
140 /// <param name="t">The type to store or retrieve</param> 140 /// <param name="t">The type to store or retrieve</param>
141 public static string GetStoredKey(string key, Type t) 141 public static string GetStoredKey(string key, Type t)
142 { 142 {
143 return string.Format("{0}-{1}", t.FullName, key); 143 return string.Format("{0}-{1}", t.FullName, key);
144 } 144 }
145 } 145 }
146 } 146 }
LEFTRIGHT

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