/* ==============================================================================
* 功能描述:
* 创 建 者:张原川
* 创建日期: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
{
///
///
///
public static class IEventExtends
{
#region Methods - Public
public static void Publish(this TEvent message) where TEvent : class, IEvent
{
EventBus.GetInstance().Publish(message);
}
public static void Publish(this TEvent message, EventBus.EventCallBackHandle eventCallBack) where TEvent : class, IEvent
{
EventBus.GetInstance().Publish(message, eventCallBack);
}
#endregion
}
}