Example #1
0
 /// <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);
     }
 }
Example #2
0
 /// <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);
     }
 }
Example #3
0
 /// <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());
 }
Example #4
0
 /// <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());
 }
Example #5
0
 /// <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();
 }
Example #6
0
        /// <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);
        }
Example #7
0
 /// <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());
 }
Example #8
0
 /// <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);
 }
Example #9
0
 /// <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();
 }
Example #10
0
 /// <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());
 }
Example #11
0
 /// <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();
 }
Example #12
0
 /// <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);
     }
 }
Example #13
0
 /// <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());
 }
Example #14
0
 /// <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);
 }
Example #15
0
 /// <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());
 }
Example #16
0
 /// <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();
 }
Example #17
0
 /// <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();
 }