Example #1
0
        public override async Task <IdentityResult> DeleteAsync(IdentityRole <TKey> role, CancellationToken cancellationToken = default)
        {
            cancellationToken.ThrowIfCancellationRequested();
            ThrowIfDisposed();
            role.ThrowIfNull(nameof(role));

            return(await RolesTable.DeleteAsync(role));
        }
Example #2
0
        public Task <IdentityResult> DeleteAsync(ApplicationRole role, CancellationToken cancellationToken)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role), "Parameter role is not set to an instance of an object.");
            }

            return(_rolesTable.DeleteAsync(role, cancellationToken));
        }
 public Task <IdentityResult> DeleteAsync(ApplicationRole role, CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     role.ThrowIfNull(nameof(role));
     return(_rolesTable.DeleteAsync(role));
 }