void IDistributedShellRestartTriggerer.TriggerRestart(ShellSettings settings)
        {
            var context = string.Empty;

            if (settings != null)
            {
                context = ShellSettingsSerializer.ComposeSettings(settings);
            }
            _eventService.Trigger(TenantRestartEventName, context);
        }
Ejemplo n.º 2
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);
 }