Skip to content

ICosmosOperationExecutor Methods

Functionality for executing operations using the Cosmos DB client.

ExecuteOperation(Func<TArg, Task<TResult>>, TArg)

abstract
public abstract Task<TResult> ExecuteOperation<TArg, TResult>(Func<TArg, Task<TResult>> func, TArg arg)
Executes the provided Cosmos DB operation.

Parameters

funcFunc<TArg, Task<TResult>>
The delegate to execute.
argTArg
The argument to pass to delegate invocations.

Returns

The result of invoking the delegate.