public virtual async Task <Response <PersonalizerEvaluation> > CreateAsync(PersonalizerEvaluationOptions evaluation, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("EvaluationsClient.Create");
     scope.Start();
     try
     {
         return(await RestClient.CreateAsync(evaluation, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
 public virtual Response <PersonalizerEvaluation> Create(PersonalizerEvaluationOptions evaluation, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("EvaluationsClient.Create");
     scope.Start();
     try
     {
         return(RestClient.Create(evaluation, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
 /// <summary> Submit a new Offline Evaluation job. </summary>
 /// <param name="evaluation"> The Offline Evaluation job definition. </param>
 /// <param name="cancellationToken"> The cancellation token to use. </param>
 public virtual PersonalizerCreateEvaluationOperation CreatePersonalizerEvaluation(PersonalizerEvaluationOptions evaluation, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("PersonalizerAdministrationClient.CreatePersonalizerEvaluation");
     scope.Start();
     try
     {
         Response <PersonalizerEvaluation> result = EvaluationsRestClient.Create(evaluation, cancellationToken);
         return(new PersonalizerCreateEvaluationOperation(this, result.Value.Id, result.GetRawResponse(), cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }