From 9687be6c7112b1d2617ae9099f1542b9c7e15afc Mon Sep 17 00:00:00 2001 From: John Luo Date: Mon, 22 May 2017 15:39:14 -0700 Subject: [PATCH] React to IDistributedCache interface change --- test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs b/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs index cc37bcd49c..49d45457e8 100644 --- a/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs +++ b/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs @@ -728,9 +728,9 @@ namespace Microsoft.AspNetCore.Session } return _cache.Get(key); } - public Task GetAsync(string key) => _cache.GetAsync(key); + public Task GetAsync(string key, CancellationToken token = default(CancellationToken)) => _cache.GetAsync(key); public void Refresh(string key) => _cache.Refresh(key); - public Task RefreshAsync(string key) + public Task RefreshAsync(string key, CancellationToken token = default(CancellationToken)) { if (DisableRefreshAsync) { @@ -739,9 +739,9 @@ namespace Microsoft.AspNetCore.Session return _cache.RefreshAsync(key); } public void Remove(string key) => _cache.Remove(key); - public Task RemoveAsync(string key) => _cache.RemoveAsync(key); + public Task RemoveAsync(string key, CancellationToken token = default(CancellationToken)) => _cache.RemoveAsync(key); public void Set(string key, byte[] value, DistributedCacheEntryOptions options) => _cache.Set(key, value, options); - public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options) + public Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token = default(CancellationToken)) { if (DisableSetAsync) {