Exemple #1
0
 /// <summary>
 /// Create a new operation, which will be in the "Not Started" state
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// Id of the Tenant.
 /// </param>
 /// <param name='operationId'>
 /// Id of the Operation.
 /// </param>
 /// <param name='resourceLocation'>
 /// Optional URI based location of the result of the Operation.
 /// </param>
 /// <param name='expireAfter'>
 /// Optional number of seconds for which to retain data about this operation
 /// after its last state change
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CreateOperationHeaders> CreateOperationAsync(this IMarainOperationsControl operations, string tenantId, System.Guid operationId, string resourceLocation = default(string), long?expireAfter = default(long?), string body = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOperationWithHttpMessagesAsync(tenantId, operationId, resourceLocation, expireAfter, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }