Esempio n. 1
0
        public async Task <IdentityResult> DeleteAsync(User user, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            try
            {
                await _platoUserStore.DeleteAsync(user);
            }
            catch
            {
                return(IdentityResult.Failed());
            }

            return(IdentityResult.Success);
        }