예제 #1
0
 /// <summary>
 /// Get Evaluation.
 /// </summary>
 /// <remarks>
 /// Get the evaluation associated with the Id.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='evaluationId'>
 /// Id of the evaluation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Evaluation> GetAsync(this IEvaluations operations, string evaluationId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(evaluationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <summary>
 /// Get Evaluation.
 /// </summary>
 /// <remarks>
 /// Get the evaluation associated with the Id.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='evaluationId'>
 /// Id of the evaluation.
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <Evaluation> GetWithHttpMessages(this IEvaluations operations, string evaluationId, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.GetWithHttpMessagesAsync(evaluationId, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }