/// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void GetPathGlobalValid(this IApiVersionDefaultOperations operations)
 {
     Task.Factory.StartNew(s => ((IApiVersionDefaultOperations)s).GetPathGlobalValidAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task GetPathGlobalValidAsync(this IApiVersionDefaultOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.GetPathGlobalValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
 }
示例#3
0
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void GetPathGlobalValid(this IApiVersionDefaultOperations operations)
 {
     operations.GetPathGlobalValidAsync().GetAwaiter().GetResult();
 }
示例#4
0
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void GetMethodGlobalNotProvidedValid(this IApiVersionDefaultOperations operations)
 {
     operations.GetMethodGlobalNotProvidedValidAsync().GetAwaiter().GetResult();
 }
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task GetMethodGlobalNotProvidedValidAsync(this IApiVersionDefaultOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.GetMethodGlobalNotProvidedValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </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 GetMethodGlobalNotProvidedValidAsync(this IApiVersionDefaultOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.GetMethodGlobalNotProvidedValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false);
 }
 /// <summary>
 /// GET method with api-version modeled in global settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static void GetMethodGlobalNotProvidedValid(this IApiVersionDefaultOperations operations)
 {
     System.Threading.Tasks.Task.Factory.StartNew(s => ((IApiVersionDefaultOperations)s).GetMethodGlobalNotProvidedValidAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }