|
1234567891011121314151617181920212223242526272829303132333435 |
- /* ==============================================================================
- * 功能描述:
- * 创 建 者:张原川
- * 创建日期:2016/10/10 16:50:12
- * ==============================================================================*/
-
- using BPASmartClient.Bus.EventBus;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
-
- namespace LandStation.Bus
- {
- /// <summary>
- ///
- /// </summary>
- public static class IEventExtends
- {
-
- #region Methods - Public
-
- public static void Publish<TEvent>(this TEvent message) where TEvent : class, IEvent
- {
- EventBus.GetInstance().Publish<TEvent>(message);
- }
-
- public static void Publish<TEvent>(this TEvent message, EventBus.EventCallBackHandle eventCallBack) where TEvent : class, IEvent
- {
- EventBus.GetInstance().Publish<TEvent>(message, eventCallBack);
- }
-
- #endregion
- }
- }
|