示例#1
0
 protected virtual void OnEventsPosted(EventsPostedEventArgs e)
 {
     try {
         if (EventsPosted != null)
         {
             EventsPosted.Invoke(this, e);
         }
     } catch (Exception ex) {
         _log.Error(typeof(DefaultEventQueue), ex, "Error while calling OnEventsPosted event handlers.");
     }
 }
 protected virtual void OnEventsPosted(EventsPostedEventArgs e) {
     try {
         if (EventsPosted != null)
             EventsPosted.Invoke(this, e);
     } catch (Exception ex) {
         _log.Error(typeof(DefaultEventQueue), ex, "Error while calling OnEventsPosted event handlers.");
     }
 }
 private void OnQueueEventsPosted(object sender, EventsPostedEventArgs args) {
     var interval = Configuration.UpdateSettingsWhenIdleInterval ?? TimeSpan.FromMilliseconds(-1);
     _updateSettingsTimer.Change(interval, interval);
 }