コード例 #1
0
 /// <summary> Get the Offline Evaluation associated with the Id. </summary>
 /// <param name="evaluationId"> Id of the Offline Evaluation. </param>
 /// <param name="cancellationToken"> The cancellation token to use. </param>
 public virtual Response <PersonalizerEvaluation> GetPersonalizerEvaluation(string evaluationId, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("PersonalizerAdministrationClient.GetPersonalizerEvaluation");
     scope.Start();
     try
     {
         return(EvaluationsRestClient.Get(evaluationId, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }