Example #1
0
 /// <summary>
 /// Initializes a new <see cref="PersonalizerCreateEvaluationOperation"/> instance.
 /// </summary>
 /// <param name="client">
 /// The client used to check for completion.
 /// </param>
 /// <param name="evaluationId">The ID of the evaluation.</param>
 /// <param name="initialResponse">
 /// Either the response from initiating the operation or getting the
 /// status if we're creating an operation from an existing ID.
 /// </param>
 /// <param name="cancellationToken">
 /// Optional <see cref="CancellationToken"/> to propagate
 /// notifications that the operation should be cancelled.
 /// </param>
 internal PersonalizerCreateEvaluationOperation(
     PersonalizerAdministrationClient client,
     string evaluationId,
     Response initialResponse,
     CancellationToken cancellationToken)
 {
     Id                 = evaluationId;
     _value             = null;
     _rawResponse       = initialResponse;
     _client            = client;
     _cancellationToken = cancellationToken;
 }
Example #2
0
 /// <summary>
 /// Initializes a new <see cref="PersonalizerCreateEvaluationOperation"/> instance.
 /// </summary>
 /// <param name="client">
 /// The client used to check for completion.
 /// </param>
 /// <param name="evaluationId">The ID of the evaluation.</param>
 public PersonalizerCreateEvaluationOperation(string evaluationId, PersonalizerAdministrationClient client) :
     this(client, evaluationId, null, CancellationToken.None)
 {
 }