Add cancellationtoken and autosave to method calls.

pull/179/head
Halil İbrahim Kalkan 7 years ago
parent c89c840f65
commit fa33dbc85a

@ -173,7 +173,7 @@ namespace Volo.Abp.Identity
Check.NotNull(user, nameof(user));
await _userRepository.InsertAsync(user);
await _userRepository.InsertAsync(user, AutoSaveChanges, cancellationToken);
await SaveChanges(cancellationToken);
return IdentityResult.Success;
@ -193,7 +193,7 @@ namespace Volo.Abp.Identity
try
{
await _userRepository.UpdateAsync(user);
await _userRepository.UpdateAsync(user, cancellationToken);
await SaveChanges(cancellationToken);
}
catch (AbpDbConcurrencyException ex)
@ -219,7 +219,7 @@ namespace Volo.Abp.Identity
try
{
await _userRepository.DeleteAsync(user);
await _userRepository.DeleteAsync(user, cancellationToken);
await SaveChanges(cancellationToken);
}
catch (AbpDbConcurrencyException ex)

Loading…
Cancel
Save