You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/NServiceBus.Persistence.CosmosDB/SynchronizedStorage/StorageSession.cs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,12 @@ public void AddOperation(Operation operation)
46
46
47
47
publicasyncTaskCommit()
48
48
{
49
+
// in case there is nothing to do don't even bother checking the rest
50
+
if(operations.Count==0)
51
+
{
52
+
return;
53
+
}
54
+
49
55
if(ContainerHolder==null)
50
56
{
51
57
thrownewException("Unable to retrieve the container name and the partition key during processing. Make sure that either `persistence.Container()` is used or the relevant container information is available on the message handling pipeline.");
0 commit comments