Skip to content

Commit

Permalink
fix: fixed DiskCachingProvider async warning and option ext comment w…
Browse files Browse the repository at this point in the history
…arning (dotnetcore#459)
  • Loading branch information
Memoyu authored Feb 23, 2023
1 parent 978ba01 commit a212c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static EasyCachingOptions WithMemoryPack(this EasyCachingOptions options,
/// Withs the memory pack serializer.
/// </summary>
/// <param name="options">Options.</param>
/// <param name="configure">Configure serializer settings.</param>
/// <param name="serializerOptions">Configure serializer settings.</param>
/// <param name="name">The name of this serializer instance.</param>
public static EasyCachingOptions WithMemoryPack(this EasyCachingOptions options, Action<EasyCachingMemPackSerializerOptions> serializerOptions, string name)
{
Expand Down
2 changes: 1 addition & 1 deletion src/EasyCaching.Disk/DefaultDiskCachingProvider.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private async Task<DiskCacheValue> GetDiskCacheValueAsync(string path, Cancellat
{
using (var mStream = new MemoryStream())
{
stream.CopyTo(mStream);
await stream.CopyToAsync(mStream);
mStream.Seek(0, SeekOrigin.Begin);
var cached = _serializer.Deserialize<DiskCacheValue>(mStream.ToArray());
return cached;
Expand Down

0 comments on commit a212c64

Please sign in to comment.