File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Microsoft.Toolkit.Uwp.SampleApp/Models
Microsoft.Toolkit.Uwp/Helpers/ObjectStorage Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public static class Samples
21
21
private static SemaphoreSlim _semaphore = new SemaphoreSlim ( 1 ) ;
22
22
23
23
private static LinkedList < Sample > _recentSamples ;
24
- private static ApplicationDataStorageHelper _localObjectStorageHelper = ApplicationDataStorageHelper . GetCurrent ( new Toolkit . Helpers . SystemSerializer ( ) ) ;
24
+ private static ApplicationDataStorageHelper _appDataStorageHelper = ApplicationDataStorageHelper . GetCurrent ( new Toolkit . Helpers . SystemSerializer ( ) ) ;
25
25
26
26
public static async Task < SampleCategory > GetCategoryBySample ( Sample sample )
27
27
{
@@ -98,7 +98,7 @@ public static async Task<LinkedList<Sample>> GetRecentSamples()
98
98
if ( _recentSamples == null )
99
99
{
100
100
_recentSamples = new LinkedList < Sample > ( ) ;
101
- var savedSamples = _localObjectStorageHelper . Read < string > ( _recentSamplesStorageKey ) ;
101
+ var savedSamples = _appDataStorageHelper . Read < string > ( _recentSamplesStorageKey ) ;
102
102
103
103
if ( savedSamples != null )
104
104
{
@@ -144,7 +144,7 @@ private static void SaveRecentSamples()
144
144
}
145
145
146
146
var str = string . Join ( ";" , _recentSamples . Take ( 10 ) . Select ( s => s . Name ) . ToArray ( ) ) ;
147
- _localObjectStorageHelper . Save < string > ( _recentSamplesStorageKey , str ) ;
147
+ _appDataStorageHelper . Save < string > ( _recentSamplesStorageKey , str ) ;
148
148
}
149
149
}
150
150
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace Microsoft.Toolkit.Uwp.Helpers
12
12
/// <summary>
13
13
/// Service used to store data.
14
14
/// </summary>
15
- [ Obsolete ( "IObjectStorageHelper is deprecated. Please use IDictionaryStorageHelper and IFileStorageHelper interfaces instead." ) ]
15
+ [ Obsolete ( "IObjectStorageHelper is deprecated. Please use ISettingsStorageHelper and IFileStorageHelper interfaces instead." ) ]
16
16
public interface IObjectStorageHelper
17
17
{
18
18
/// <summary>
You can’t perform that action at this time.
0 commit comments