예제 #1
0
 /// <summary>
 /// Scales a streaming job when the job is running.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='jobName'>
 /// The name of the streaming job.
 /// </param>
 /// <param name='scaleJobParameters'>
 /// Parameters applicable to a scale streaming job operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginScaleAsync(this IStreamingJobsOperations operations, string resourceGroupName, string jobName, ScaleStreamingJobParameters scaleJobParameters = default(ScaleStreamingJobParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginScaleWithHttpMessagesAsync(resourceGroupName, jobName, scaleJobParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
예제 #2
0
 /// <summary>
 /// Scales a streaming job when the job is running.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='jobName'>
 /// The name of the streaming job.
 /// </param>
 /// <param name='scaleJobParameters'>
 /// Parameters applicable to a scale streaming job operation.
 /// </param>
 public static void BeginScale(this IStreamingJobsOperations operations, string resourceGroupName, string jobName, ScaleStreamingJobParameters scaleJobParameters = default(ScaleStreamingJobParameters))
 {
     operations.BeginScaleAsync(resourceGroupName, jobName, scaleJobParameters).GetAwaiter().GetResult();
 }