From fdedf2b46a8cf617da0ef75f9200689657fc9e88 Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Tue, 31 May 2016 15:24:12 -0700 Subject: [PATCH] Remove vestiges of NotifyAsync --- .../DataProtectionTokenProvider.cs | 12 ------------ .../UserManagerTest.cs | 5 ----- test/Shared/UserManagerTestBase.cs | 5 ----- 3 files changed, 22 deletions(-) diff --git a/src/Microsoft.AspNetCore.Identity/DataProtectionTokenProvider.cs b/src/Microsoft.AspNetCore.Identity/DataProtectionTokenProvider.cs index 09f74095a7..9e285f5e61 100644 --- a/src/Microsoft.AspNetCore.Identity/DataProtectionTokenProvider.cs +++ b/src/Microsoft.AspNetCore.Identity/DataProtectionTokenProvider.cs @@ -161,18 +161,6 @@ namespace Microsoft.AspNetCore.Identity { return Task.FromResult(false); } - - /// - /// Creates a notification for the specified based on the supplied as an asynchronous operation. - /// - /// The token to generate notifications for. - /// The to retrieve user properties from. - /// The the token was generated for. - /// A that represents the asynchronous notification. - public virtual Task NotifyAsync(string token, UserManager manager, TUser user) - { - return Task.FromResult(0); - } } /// diff --git a/test/Microsoft.AspNetCore.Identity.Test/UserManagerTest.cs b/test/Microsoft.AspNetCore.Identity.Test/UserManagerTest.cs index 28975a3c26..0c52e3a26c 100644 --- a/test/Microsoft.AspNetCore.Identity.Test/UserManagerTest.cs +++ b/test/Microsoft.AspNetCore.Identity.Test/UserManagerTest.cs @@ -1146,11 +1146,6 @@ namespace Microsoft.AspNetCore.Identity.Test return Task.FromResult(true); } - public Task NotifyAsync(string token, UserManager manager, TestUser user) - { - return Task.FromResult(0); - } - public Task CanGenerateTwoFactorTokenAsync(UserManager manager, TestUser user) { return Task.FromResult(true); diff --git a/test/Shared/UserManagerTestBase.cs b/test/Shared/UserManagerTestBase.cs index a45e966b14..e46115648d 100644 --- a/test/Shared/UserManagerTestBase.cs +++ b/test/Shared/UserManagerTestBase.cs @@ -826,11 +826,6 @@ namespace Microsoft.AspNetCore.Identity.Test return token == MakeToken(purpose, await manager.GetUserIdAsync(user)); } - public Task NotifyAsync(string token, UserManager manager, TUser user) - { - return Task.FromResult(0); - } - public Task CanGenerateTwoFactorTokenAsync(UserManager manager, TUser user) { return Task.FromResult(true);