From fa33dbc85ab9f8297475afe8bae17aa8f775b568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 25 Oct 2017 16:43:56 +0300 Subject: [PATCH] Add cancellationtoken and autosave to method calls. --- .../Volo/Abp/Identity/IdentityUserStore.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserStore.cs b/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserStore.cs index 201d757e28..969a77e0e9 100644 --- a/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserStore.cs +++ b/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserStore.cs @@ -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)