public virtual void Start() { if (string.IsNullOrEmpty(EventBusConfigurationExtensions.ConnectionName)) { throw new ArgumentNullException("ConnectionName"); } EventPublish.Connect(EventBusConfigurationExtensions.ConnectionName); EventSubscribe.Connect(EventBusConfigurationExtensions.ConnectionName); }
public void Trigger(Type eventType, object eventSource, IEventData eventData) { EventPublish.Trigger(eventType, eventSource, eventData); }
public Task TriggerAsync <TEventData>(object eventSource, TEventData eventData) where TEventData : IEventData { return(EventPublish.TriggerAsync(eventSource, eventData)); }
public Task TriggerAsync(Type eventType, object eventSource, IEventData eventData) { return(EventPublish.TriggerAsync(eventType, eventSource, eventData)); }