예제 #1
0
 /// <summary>
 /// Gets application state from the specified HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The id of the job.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppState> GetAppStateAsync(this IJobOperations operations, string appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAppStateWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }