@@ -194,7 +194,7 @@ protected internal virtual Guid CreateCore(Entity entity)
194194
195195 protected internal virtual async Task < Guid > CreateAsyncCore ( Entity entity )
196196 {
197- return await ExecuteOperation < Guid > ( async ( ) => { await ServiceChannel . Channel . CreateAsync ( entity ) . ConfigureAwait ( false ) ; } ) ;
197+ return await ExecuteOperation < Guid > ( async ( ) => { await ServiceChannel . Channel . CreateAsync ( entity ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
198198 }
199199
200200 protected internal virtual Entity RetrieveCore ( string entityName , Guid id , ColumnSet columnSet )
@@ -263,7 +263,7 @@ protected internal virtual Entity RetrieveCore(string entityName, Guid id, Colum
263263
264264 protected internal virtual async Task < Entity > RetrieveAsyncCore ( string entityName , Guid id , ColumnSet columnSet )
265265 {
266- return await ExecuteOperation < Entity > ( async ( ) => { await ServiceChannel . Channel . RetrieveAsync ( entityName , id , columnSet ) . ConfigureAwait ( false ) ; } ) ;
266+ return await ExecuteOperation < Entity > ( async ( ) => { await ServiceChannel . Channel . RetrieveAsync ( entityName , id , columnSet ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
267267 }
268268
269269 protected internal virtual void UpdateCore ( Entity entity )
@@ -333,7 +333,7 @@ protected internal virtual void UpdateCore(Entity entity)
333333
334334 protected internal virtual async Task UpdateAsyncCore ( Entity entity )
335335 {
336- _ = await ExecuteOperation < bool ? > ( async ( ) => { await ServiceChannel . Channel . UpdateAsync ( entity ) . ConfigureAwait ( false ) ; } ) ;
336+ _ = await ExecuteOperation < bool ? > ( async ( ) => { await ServiceChannel . Channel . UpdateAsync ( entity ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
337337 }
338338
339339 protected internal virtual void DeleteCore ( string entityName , Guid id )
@@ -403,7 +403,7 @@ protected internal virtual void DeleteCore(string entityName, Guid id)
403403
404404 protected internal virtual async Task DeleteAsyncCore ( string entityName , Guid id )
405405 {
406- _ = await ExecuteOperation < bool ? > ( async ( ) => { await ServiceChannel . Channel . DeleteAsync ( entityName , id ) . ConfigureAwait ( false ) ; } ) ;
406+ _ = await ExecuteOperation < bool ? > ( async ( ) => { await ServiceChannel . Channel . DeleteAsync ( entityName , id ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
407407 }
408408
409409 protected internal virtual OrganizationResponse ExecuteCore ( OrganizationRequest request )
@@ -472,7 +472,7 @@ protected internal virtual OrganizationResponse ExecuteCore(OrganizationRequest
472472
473473 protected internal virtual async Task < OrganizationResponse > ExecuteAsyncCore ( OrganizationRequest request )
474474 {
475- return await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . ExecuteAsync ( request ) . ConfigureAwait ( false ) ; } ) ;
475+ return await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . ExecuteAsync ( request ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
476476 }
477477
478478 protected internal virtual void AssociateCore ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
@@ -542,7 +542,7 @@ protected internal virtual void AssociateCore(string entityName, Guid entityId,
542542
543543 protected internal virtual async Task AssociateAsyncCore ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
544544 {
545- await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . AssociateAsync ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ; } ) ;
545+ await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . AssociateAsync ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
546546 }
547547
548548 protected internal virtual void DisassociateCore ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
@@ -612,7 +612,7 @@ protected internal virtual void DisassociateCore(string entityName, Guid entityI
612612
613613 protected internal virtual async Task DisassociateAsyncCore ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
614614 {
615- await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . DisassociateAsync ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ; } ) ;
615+ await ExecuteOperation < OrganizationResponse > ( async ( ) => { await ServiceChannel . Channel . DisassociateAsync ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
616616 }
617617
618618 protected internal virtual EntityCollection RetrieveMultipleCore ( QueryBase query )
@@ -681,7 +681,7 @@ protected internal virtual EntityCollection RetrieveMultipleCore(QueryBase query
681681
682682 protected internal virtual async Task < EntityCollection > RetrieveMultipleAsyncCore ( QueryBase query )
683683 {
684- return await ExecuteOperation < EntityCollection > ( async ( ) => { await ServiceChannel . Channel . RetrieveMultipleAsync ( query ) . ConfigureAwait ( false ) ; } ) ;
684+ return await ExecuteOperation < EntityCollection > ( async ( ) => { await ServiceChannel . Channel . RetrieveMultipleAsync ( query ) . ConfigureAwait ( false ) ; } ) . ConfigureAwait ( false ) ;
685685 }
686686
687687 protected async internal Task < T > ExecuteOperation < T > ( Func < Task > asyncAction )
@@ -759,7 +759,7 @@ public Guid Create(Entity entity)
759759
760760 public async Task < Guid > CreateAsync ( Entity entity )
761761 {
762- return await CreateAsyncCore ( entity ) ;
762+ return await CreateAsyncCore ( entity ) . ConfigureAwait ( false ) ;
763763 }
764764
765765 public Entity Retrieve ( string entityName , Guid id , ColumnSet columnSet )
@@ -768,7 +768,7 @@ public Entity Retrieve(string entityName, Guid id, ColumnSet columnSet)
768768 }
769769 public async Task < Entity > RetrieveAsync ( string entityName , Guid id , ColumnSet columnSet )
770770 {
771- return await RetrieveAsyncCore ( entityName , id , columnSet ) ;
771+ return await RetrieveAsyncCore ( entityName , id , columnSet ) . ConfigureAwait ( false ) ;
772772 }
773773
774774 public void Update ( Entity entity )
@@ -777,7 +777,7 @@ public void Update(Entity entity)
777777 }
778778 public async Task UpdateAsync ( Entity entity )
779779 {
780- await UpdateAsyncCore ( entity ) ;
780+ await UpdateAsyncCore ( entity ) . ConfigureAwait ( false ) ;
781781 }
782782
783783 public void Delete ( string entityName , Guid id )
@@ -787,7 +787,7 @@ public void Delete(string entityName, Guid id)
787787
788788 public async Task DeleteAsync ( string entityName , Guid id )
789789 {
790- await DeleteAsyncCore ( entityName , id ) ;
790+ await DeleteAsyncCore ( entityName , id ) . ConfigureAwait ( false ) ;
791791 }
792792
793793
@@ -798,7 +798,7 @@ public OrganizationResponse Execute(OrganizationRequest request)
798798
799799 public async Task < OrganizationResponse > ExecuteAsync ( OrganizationRequest request )
800800 {
801- return await ExecuteAsyncCore ( request ) ;
801+ return await ExecuteAsyncCore ( request ) . ConfigureAwait ( false ) ;
802802 }
803803
804804 public void Associate ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
@@ -808,7 +808,7 @@ public void Associate(string entityName, Guid entityId, Relationship relationshi
808808
809809 public async Task AssociateAsync ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
810810 {
811- await AssociateAsyncCore ( entityName , entityId , relationship , relatedEntities ) ;
811+ await AssociateAsyncCore ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ;
812812 }
813813
814814 public void Disassociate ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
@@ -818,7 +818,7 @@ public void Disassociate(string entityName, Guid entityId, Relationship relation
818818
819819 public async Task DisassociateAsync ( string entityName , Guid entityId , Relationship relationship , EntityReferenceCollection relatedEntities )
820820 {
821- await DisassociateAsyncCore ( entityName , entityId , relationship , relatedEntities ) ;
821+ await DisassociateAsyncCore ( entityName , entityId , relationship , relatedEntities ) . ConfigureAwait ( false ) ;
822822 }
823823
824824 public EntityCollection RetrieveMultiple ( QueryBase query )
@@ -828,7 +828,7 @@ public EntityCollection RetrieveMultiple(QueryBase query)
828828
829829 public async Task < EntityCollection > RetrieveMultipleAsync ( QueryBase query )
830830 {
831- return await RetrieveMultipleAsyncCore ( query ) ;
831+ return await RetrieveMultipleAsyncCore ( query ) . ConfigureAwait ( false ) ;
832832 }
833833
834834 #endregion
0 commit comments