async Task SagaConsumeContext <TSaga> .SetCompleted() { if (_options.DeleteWhenCompleted) { await _connection.DeleteEventsAsync(Saga, _options); } IsCompleted = Saga.Finalized() && _options.SaveFinalState is false; if (Log.IsDebugEnabled) { Log.DebugFormat("SAGA:{0}:{1} Removed {2}", TypeMetadataCache <TSaga> .ShortName, TypeMetadataCache <TMessage> .ShortName, Saga.CorrelationId); } }