Esempio n. 1
0
 /// <summary>
 /// Raises <see cref="RequestTemporalSupport"/> event.
 /// </summary>
 protected virtual void OnRequestTemporalSupport()
 {
     try
     {
         RequestTemporalSupport?.Invoke(this, EventArgs.Empty);
     }
     catch (Exception ex)
     {
         // We protect our code from consumer thrown exceptions
         OnProcessException(MessageLevel.Info, new InvalidOperationException($"Exception in consumer handler for RequestTemporalSupport event: {ex.Message}", ex), "ConsumerEventException");
     }
 }
Esempio n. 2
0
 // Raise request temporal support event on behalf of each item in collection
 private void item_RequestTemporalSupport(object sender, EventArgs e) => RequestTemporalSupport?.Invoke(sender, e);