/// <summary> /// Long running put request poller, service returns a ‘200’ with /// ProvisioningState=’Failed’ /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Product GetProvisioning202Deleting200Failed(this IDONOTCALLsOperations operations) { return(Task.Factory.StartNew(s => ((IDONOTCALLsOperations)s).GetProvisioning202Deleting200FailedAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Long running put request poller, service returns a ‘200’ with /// ProvisioningState=’Failed’ /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Product> GetProvisioning202Deleting200FailedAsync(this IDONOTCALLsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse <Product> result = await operations.GetProvisioning202Deleting200FailedWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// Long running post request poller, service returns a ‘200’ with a Product. /// Client should return with success from long-running operation /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Product> Post202Retry200PollingCustomHeaderAsync(this IDONOTCALLsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse <Product> result = await operations.Post202Retry200PollingCustomHeaderWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// Long running post request poller, service returns a ‘200’ with a Product. /// Client should return with success from long-running operation /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Product Post202Retry200PollingCustomHeader(this IDONOTCALLsOperations operations) { return(Task.Factory.StartNew(s => ((IDONOTCALLsOperations)s).Post202Retry200PollingCustomHeaderAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Long running put request poller, service returns a 400 with an error body /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetRetry202NonRetry400Async(this IDONOTCALLsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { await operations.GetRetry202NonRetry400WithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Long running put request poller, service returns a 400 with an error body /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void GetRetry202NonRetry400(this IDONOTCALLsOperations operations) { Task.Factory.StartNew(s => ((IDONOTCALLsOperations)s).GetRetry202NonRetry400Async(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Long running post request poller, service returns a ‘204' with no enetity /// body. Client should return with success from long-running operation /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task Post202NoRetry204PollingAsync(this IDONOTCALLsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { await operations.Post202NoRetry204PollingWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }