/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='format'> /// Specifies response output format /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TestAuthResponse> PostAsync(this ITestAuth operations, string format = "json", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(format, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='format'> /// Specifies response output format /// </param> public static TestAuthResponse Post(this ITestAuth operations, string format = "json") { return(operations.PostAsync(format).GetAwaiter().GetResult()); }