Skip to content

Commit 5707c6d

Browse files
committed
Fixed typo in IObjectStorageHelper. Updated var name to be more accurate in Samples.cs
1 parent cf294f2 commit 5707c6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Microsoft.Toolkit.Uwp.SampleApp/Models/Samples.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static class Samples
2121
private static SemaphoreSlim _semaphore = new SemaphoreSlim(1);
2222

2323
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());
2525

2626
public static async Task<SampleCategory> GetCategoryBySample(Sample sample)
2727
{
@@ -98,7 +98,7 @@ public static async Task<LinkedList<Sample>> GetRecentSamples()
9898
if (_recentSamples == null)
9999
{
100100
_recentSamples = new LinkedList<Sample>();
101-
var savedSamples = _localObjectStorageHelper.Read<string>(_recentSamplesStorageKey);
101+
var savedSamples = _appDataStorageHelper.Read<string>(_recentSamplesStorageKey);
102102

103103
if (savedSamples != null)
104104
{
@@ -144,7 +144,7 @@ private static void SaveRecentSamples()
144144
}
145145

146146
var str = string.Join(";", _recentSamples.Take(10).Select(s => s.Name).ToArray());
147-
_localObjectStorageHelper.Save<string>(_recentSamplesStorageKey, str);
147+
_appDataStorageHelper.Save<string>(_recentSamplesStorageKey, str);
148148
}
149149
}
150150
}

Microsoft.Toolkit.Uwp/Helpers/ObjectStorage/IObjectStorageHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.Toolkit.Uwp.Helpers
1212
/// <summary>
1313
/// Service used to store data.
1414
/// </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.")]
1616
public interface IObjectStorageHelper
1717
{
1818
/// <summary>

0 commit comments

Comments
 (0)