protected virtual void OnRecoveredMeasurements(ICollection<IMeasurement> measurements)
{
try
{
RecoveredMeasurements?.Invoke(this, new EventArgs<ICollection<IMeasurement>>(measurements));
}
catch (Exception ex)
{
// We protect our code from consumer thrown exceptions
OnProcessException(MessageLevel.Info, new InvalidOperationException($"Exception in consumer handler for RecoveredMeasurements event: {ex.Message}", ex), "ConsumerEventException");
}
}