Esempio n. 1
0
 public CosmosOutboxTransaction(ContainerHolderResolver resolver, ContextBag context)
 {
     StorageSession = new StorageSession(resolver, context, false);
 }
Esempio n. 2
0
 public OutboxPersister(ContainerHolderResolver containerHolderResolver, JsonSerializer serializer, int ttlInSeconds)
 {
     this.containerHolderResolver = containerHolderResolver;
     this.serializer   = serializer;
     this.ttlInSeconds = ttlInSeconds;
 }
 // When outbox is involved, commitOnComplete will be false
 public StorageSession(ContainerHolderResolver resolver, ContextBag context, bool commitOnComplete)
 {
     this.commitOnComplete = commitOnComplete;
     CurrentContextBag     = context;
     ContainerHolder       = resolver.ResolveAndSetIfAvailable(context);
 }
Esempio n. 4
0
 internal OutboxBehavior(ContainerHolderResolver containerHolderResolver, JsonSerializer serializer)
 {
     this.containerHolderResolver = containerHolderResolver;
     this.serializer = serializer;
 }
Esempio n. 5
0
 public StorageSessionFactory(ContainerHolderResolver containerHolderResolver, CurrentSharedTransactionalBatchHolder currentSharedTransactionalBatchHolder)
 {
     this.containerHolderResolver = containerHolderResolver;
     this.currentSharedTransactionalBatchHolder = currentSharedTransactionalBatchHolder;
 }