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 @@ -