public Task <string> GetPasswordHashAsync(TUser user) { try { string passwordHash = _userIdentityRepository.GetPasswordHash(user.Id, _connectionFactory); return(Task.FromResult <string>(passwordHash)); } catch (Exception exception) { DemLogger.Current.Error(exception, $"{nameof(UserIdentityService<TUser>)}. Error in function {DemLogger.GetCallerInfo()}"); return(Task.FromResult <string>(null)); } }