예제 #1
0
파일: UserStore.cs 프로젝트: turenc/Plato
        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);
        }