Skip to content

Commit

Permalink
async disposal when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiogenesis committed Sep 11, 2024
1 parent d0ef603 commit 6635621
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Dotmim.Sync.Batch;
using Dotmim.Sync.Batch;
using Dotmim.Sync.Builders;
using Dotmim.Sync.Enumerations;
using System;
Expand Down Expand Up @@ -56,7 +56,11 @@ public abstract partial class BaseOrchestrator
}
finally
{
#if NET6_0_OR_GREATER
await preCommand.DisposeAsync().ConfigureAwait(false);
#else
preCommand.Dispose();
#endif
}
}

Expand Down Expand Up @@ -106,7 +110,11 @@ public abstract partial class BaseOrchestrator
}
finally
{
#if NET6_0_OR_GREATER
await command.DisposeAsync().ConfigureAwait(false);
#else
command.Dispose();
#endif
}

var rowAppliedArgs = new RowsChangesAppliedArgs(context, batchInfo, batchArgs.SyncRows, schemaTable, SyncRowState.Modified, rowCount, exception, connection, transaction);
Expand Down

0 comments on commit 6635621

Please sign in to comment.