Example #1
0
 /// <summary>
 /// Handles the TelemetryManifestUpdateStatus event from the downloader by giving the
 /// loaded TelemetryManifest to the EventProcessor in case of the success.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void TelemetryManifestUpdateStatus(object sender, TelemetryManifestEventArgs e)
 {
     if (!base.IsDisposed)
     {
         if (e.IsSuccess)
         {
             TelemetryManifest telemetryManifest = e.TelemetryManifest;
             CalculatedSamplings            = telemetryManifest.CalculateAllSamplings(this);
             EventProcessor.CurrentManifest = telemetryManifest;
         }
         else
         {
             CalculatedSamplings = "e.IsSuccess == false";
         }
         if (!isManifestCompleted)
         {
             identityTelemetry.IdentityInformationProvider.Initialize(defaultContext, contextScheduler, e.TelemetryManifest?.MachineIdentityConfig);
             SetInternalInformationProperties(EventProcessor.CurrentManifest);
         }
         isManifestCompleted = true;
         InitializeSession();
     }
 }
 private void OnUpdateTelemetryManifestStatusEvent(TelemetryManifestEventArgs e)
 {
     this.UpdateTelemetryManifestStatusEvent?.Invoke(this, e);
 }