/// <summary> /// Test implicitly optional query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Error> GetOptionalGlobalQueryAsync(this IImplicitModel operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetOptionalGlobalQueryWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Test implicitly required path parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='pathParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Error> GetRequiredPathAsync(this IImplicitModel operations, string pathParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRequiredPathWithHttpMessagesAsync(pathParameter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Test implicitly required path parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='pathParameter'> /// </param> public static Error GetRequiredPath(this IImplicitModel operations, string pathParameter) { return(Task.Factory.StartNew(s => ((IImplicitModel)s).GetRequiredPathAsync(pathParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Error GetOptionalGlobalQuery(this IImplicitModel operations) { return(Task.Factory.StartNew(s => ((IImplicitModel)s).GetOptionalGlobalQueryAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional header parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='queryParameter'> /// </param> public static void PutOptionalHeader(this IImplicitModel operations, string queryParameter = default(string)) { operations.PutOptionalHeaderAsync(queryParameter).GetAwaiter().GetResult(); }
/// <summary> /// Test implicitly required path parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Error> GetRequiredGlobalPathAsync(this IImplicitModel operations, CancellationToken cancellationToken = default(CancellationToken)) { var _result = await operations.GetRequiredGlobalPathWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); return(_result.Body); }
/// <summary> /// Test implicitly optional query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Error GetOptionalGlobalQuery(this IImplicitModel operations) { return(operations.GetOptionalGlobalQueryAsync().GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional body parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task PutOptionalBodyAsync(this IImplicitModel operations, string bodyParameter = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.PutOptionalBodyWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Test implicitly optional body parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutOptionalBodyAsync(this IImplicitModel operations, string bodyParameter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PutOptionalBodyWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Test implicitly required path parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Error GetRequiredGlobalPath(this IImplicitModel operations) { return(operations.GetRequiredGlobalPathAsync().GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional body parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PutOptionalBody(this IImplicitModel operations, string bodyParameter = default(string)) { operations.PutOptionalBodyAsync(bodyParameter).GetAwaiter().GetResult(); }
/// <summary> /// Test implicitly required query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <Error> GetRequiredGlobalQueryAsync(this IImplicitModel operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetRequiredGlobalQueryWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Test implicitly required query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Error GetRequiredGlobalQuery(this IImplicitModel operations) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IImplicitModel)s).GetRequiredGlobalQueryAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional query parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='queryParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutOptionalQueryAsync(this IImplicitModel operations, string queryParameter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PutOptionalQueryWithHttpMessagesAsync(queryParameter, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Test implicitly required path parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='pathParameter'> /// </param> public static Error GetRequiredPath(this IImplicitModel operations, string pathParameter) { return(operations.GetRequiredPathAsync(pathParameter).GetAwaiter().GetResult()); }
/// <summary> /// Test implicitly optional header parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='queryParameter'> /// </param> public static void PutOptionalHeader(this IImplicitModel operations, string queryParameter = default(string)) { Task.Factory.StartNew(s => ((IImplicitModel)s).PutOptionalHeaderAsync(queryParameter), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Test implicitly optional body parameter /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> public static void PutOptionalBody(this IImplicitModel operations, string bodyParameter = default(string)) { System.Threading.Tasks.Task.Factory.StartNew(s => ((IImplicitModel)s).PutOptionalBodyAsync(bodyParameter), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }