MongoDB · Types · Services and connections

IArxBatchDataService

Definition

Namespace
ARX.SDK.Services
Package
ARX.SDK
C#
public interface IArxBatchDataService

A data service that can run write calls in batch scopes.

Methods

  • Task<IArxBatchScope> BeginBatchAsync(ArxBatchOptions? options = null, CancellationToken cancellationToken = default)

    Opens a connection and a transaction, and returns a scope with manual commit: call CommitAsync to keep what was written. Disposing the scope without it rolls back. For automatic commit, use RunBatchAsync.

    Parameter Type Description
    optionsArxBatchOptions?= nullThe scope's options; null for the defaults (no savepoints).
    cancellationTokenCancellationToken= defaultCancels the call.