/// <summary> /// Starts a transaction. /// </summary> /// <remarks> /// Required permissions: Queues.View and Transactions.View and /// Transactions.Create and Transactions.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='startTransactionParameters'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <QueueItemDto> StartTransactionAsync(this IQueues operations, StartTransactionParameters startTransactionParameters = default(StartTransactionParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.StartTransactionWithHttpMessagesAsync(startTransactionParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Starts a transaction. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Queues or Queues.Write. /// /// Required permissions: Queues.View and Transactions.View and /// Transactions.Create and Transactions.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <QueueItemDto> StartTransactionAsync(this IQueues operations, QueuesStartTransactionParameters body = default(QueuesStartTransactionParameters), string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.StartTransactionWithHttpMessagesAsync(body, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }