/// <summary> Report that the specified event was actually used (e.g. by being displayed to the user) and a reward should be expected for it. </summary>
 /// <param name="eventId"> The event ID to be activated. </param>
 /// <param name="cancellationToken"> The cancellation token to use. </param>
 public virtual async Task <Response> ActivateAsync(string eventId, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("PersonalizerClient.Activate");
     scope.Start();
     try
     {
         return(await EventsRestClient.ActivateAsync(eventId, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
 /// <summary> Report that the specified event was actually used (e.g. by being displayed to the user) and a reward should be expected for it. </summary>
 /// <param name="eventId"> The event ID to be activated. </param>
 /// <param name="cancellationToken"> The cancellation token to use. </param>
 public virtual async Task <Response> ActivateAsync(string eventId, CancellationToken cancellationToken = default)
 {
     using var scope = clientDiagnostics.CreateScope("PersonalizerClient.Activate");
     scope.Start();
     try
     {
         if (useLocalInference)
         {
             validateAndUpdateLiveModelConfig();
             return(rlNetProcessor.Value.Activate(eventId));
         }
         else
         {
             return(await EventsRestClient.ActivateAsync(eventId, cancellationToken).ConfigureAwait(false));
         }
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }