/// <summary> /// POST method with subscriptionId modeled in credentials. Set the /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void PostMethodGlobalNotProvidedValid(this ISubscriptionInCredentialsOperations operations) { Task.Factory.StartNew(s => ((ISubscriptionInCredentialsOperations)s).PostMethodGlobalNotProvidedValidAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostMethodGlobalNotProvidedValidAsync(this ISubscriptionInCredentialsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostMethodGlobalNotProvidedValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the credential /// subscriptionId to '1234-5678-9012-3456' to succeed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void PostMethodGlobalNotProvidedValid(this ISubscriptionInCredentialsOperations operations) { operations.PostMethodGlobalNotProvidedValidAsync().GetAwaiter().GetResult(); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the credential /// subscriptionId to null, and client-side validation should prevent you from /// making this call /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostMethodGlobalNullAsync(this ISubscriptionInCredentialsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PostMethodGlobalNullWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the credential /// subscriptionId to '1234-5678-9012-3456' to succeed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void PostSwaggerGlobalValid(this ISubscriptionInCredentialsOperations operations) { operations.PostSwaggerGlobalValidAsync().GetAwaiter().GetResult(); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the /// credential subscriptionId to null, and client-side validation should /// prevent you from making this call /// </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 PostMethodGlobalNullAsync(this ISubscriptionInCredentialsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.PostMethodGlobalNullWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// POST method with subscriptionId modeled in credentials. Set the /// credential subscriptionId to null, and client-side validation should /// prevent you from making this call /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static void PostMethodGlobalNull(this ISubscriptionInCredentialsOperations operations) { System.Threading.Tasks.Task.Factory.StartNew(s => ((ISubscriptionInCredentialsOperations)s).PostMethodGlobalNullAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }