/// <summary> /// Get null duration value /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <System.TimeSpan?> GetNullAsync(this IDurationOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetNullWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get null duration value /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static AzureOperationResponse <System.TimeSpan?> GetNullWithHttpMessages(this IDurationOperations operations, Dictionary <string, List <string> > customHeaders = null) { return(operations.GetNullWithHttpMessagesAsync(customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get null duration value /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static Microsoft.Rest.Azure.AzureOperationResponse <System.TimeSpan?> GetNullWithHttpMessages(this IDurationOperations operations, System.Collections.Generic.Dictionary <string, System.Collections.Generic.List <string> > customHeaders = null) { return(operations.GetNullWithHttpMessagesAsync(customHeaders, System.Threading.CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Get null duration value /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TimeSpan?> GetNullAsync(this IDurationOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { AzureOperationResponse <TimeSpan?> result = await operations.GetNullWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); return(result.Body); }