Răsfoiți Sursa

Make RoleStore protected virtual (#38061)

Hao Kung 4 ani în urmă
părinte
comite
a989bb1c14

+ 1 - 0
src/Identity/EntityFrameworkCore/src/PublicAPI.Unshipped.txt

@@ -1 +1,2 @@
 #nullable enable
+~virtual Microsoft.AspNetCore.Identity.EntityFrameworkCore.RoleStore<TRole, TContext, TKey, TUserRole, TRoleClaim>.SaveChanges(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task

+ 1 - 1
src/Identity/EntityFrameworkCore/src/RoleStore.cs

@@ -121,7 +121,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore
         /// <summary>Saves the current store.</summary>
         /// <param name="cancellationToken">The <see cref="CancellationToken"/> used to propagate notifications that the operation should be canceled.</param>
         /// <returns>The <see cref="Task"/> that represents the asynchronous operation.</returns>
-        private async Task SaveChanges(CancellationToken cancellationToken)
+        protected virtual async Task SaveChanges(CancellationToken cancellationToken)
         {
             if (AutoSaveChanges)
             {