예제 #1
0
        public virtual void Start()
        {
            if (string.IsNullOrEmpty(EventBusConfigurationExtensions.ConnectionName))
            {
                throw new ArgumentNullException("ConnectionName");
            }

            EventPublish.Connect(EventBusConfigurationExtensions.ConnectionName);
            EventSubscribe.Connect(EventBusConfigurationExtensions.ConnectionName);
        }
예제 #2
0
 public void Trigger(Type eventType, object eventSource, IEventData eventData)
 {
     EventPublish.Trigger(eventType, eventSource, eventData);
 }
예제 #3
0
 public Task TriggerAsync <TEventData>(object eventSource, TEventData eventData) where TEventData : IEventData
 {
     return(EventPublish.TriggerAsync(eventSource, eventData));
 }
예제 #4
0
 public Task TriggerAsync(Type eventType, object eventSource, IEventData eventData)
 {
     return(EventPublish.TriggerAsync(eventType, eventSource, eventData));
 }