From c267d192d682b2c22bd38e0c16df21157b10a579 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 8 Jun 2017 11:38:28 -0700 Subject: [PATCH] Remove usage of TaskCache --- .../AuthenticationHandler.cs | 9 ++++----- .../Microsoft.AspNetCore.Server.IISIntegration.csproj | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration/AuthenticationHandler.cs b/src/Microsoft.AspNetCore.Server.IISIntegration/AuthenticationHandler.cs index 050b40e283..30905d4149 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration/AuthenticationHandler.cs +++ b/src/Microsoft.AspNetCore.Server.IISIntegration/AuthenticationHandler.cs @@ -8,7 +8,6 @@ using System.Security.Principal; using System.Threading.Tasks; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Internal; using Microsoft.Extensions.Primitives; namespace Microsoft.AspNetCore.Server.IISIntegration @@ -63,20 +62,20 @@ namespace Microsoft.AspNetCore.Server.IISIntegration { // We would normally set the www-authenticate header here, but IIS does that for us. _context.Response.StatusCode = 401; - return TaskCache.CompletedTask; + return Task.CompletedTask; } public Task ForbidAsync(AuthenticationProperties properties) { _context.Response.StatusCode = 403; - return TaskCache.CompletedTask; + return Task.CompletedTask; } public Task InitializeAsync(AuthenticationScheme scheme, HttpContext context) { Scheme = scheme; _context = context; - return TaskCache.CompletedTask; + return Task.CompletedTask; } public Task SignInAsync(ClaimsPrincipal user, AuthenticationProperties properties) @@ -86,7 +85,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration public Task SignOutAsync(AuthenticationProperties properties) { - return TaskCache.CompletedTask; + return Task.CompletedTask; } } } diff --git a/src/Microsoft.AspNetCore.Server.IISIntegration/Microsoft.AspNetCore.Server.IISIntegration.csproj b/src/Microsoft.AspNetCore.Server.IISIntegration/Microsoft.AspNetCore.Server.IISIntegration.csproj index b9bce3b967..e99000b1a5 100644 --- a/src/Microsoft.AspNetCore.Server.IISIntegration/Microsoft.AspNetCore.Server.IISIntegration.csproj +++ b/src/Microsoft.AspNetCore.Server.IISIntegration/Microsoft.AspNetCore.Server.IISIntegration.csproj @@ -19,7 +19,6 @@ -