public ForegroundPolledEventRaiser(
     ILastForegroundPollTimeAccessor lastPollTimeAccessor,
     IClock clock,
     IDistributedEventService eventService)
 {
     _lastPollTimeAccessor = lastPollTimeAccessor;
     _clock = clock;
     _eventService = eventService;
 }
 public ShellRestartHandler(
     IDistributedEventService eventService,
     ShellSettings shellSettings,
     IShellSettingsManagerEventHandler shellSettingsEvents)
 {
     _eventService        = eventService;
     _shellSettings       = shellSettings;
     _shellSettingsEvents = shellSettingsEvents;
 }
 public ForegroundPolledEventRaiser(
     ILastForegroundPollTimeAccessor lastPollTimeAccessor,
     IClock clock,
     IDistributedEventService eventService)
 {
     _lastPollTimeAccessor = lastPollTimeAccessor;
     _clock        = clock;
     _eventService = eventService;
 }
 public ShellRestartHandler(
     IDistributedEventService eventService,
     ShellSettings shellSettings,
     IShellSettingsManagerEventHandler shellSettingsEvents)
 {
     _eventService = eventService;
     _shellSettings = shellSettings;
     _shellSettingsEvents = shellSettingsEvents;
 }
 public PollingEventRaisingTask(IDistributedEventService eventService)
 {
     _eventService = eventService;
 }
 public PollingEventRaisingTask(IDistributedEventService eventService)
 {
     _eventService = eventService;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Triggers a distributed event. The event will be raised on other server nodes (but not this one).
 /// </summary>
 /// <param name="eventName">Name of the event to identify it.</param>
 public static void Trigger(this IDistributedEventService eventService, string eventName)
 {
     eventService.Trigger(eventName, null);
 }