static void Main(string[] args)
        {
            var bootstrapper = AbpBootstrapper.Create <RabbitMQTestModule>();

            //bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f =>
            //    f.UseAbpLog4Net().WithConfig("log4net.config"));

            bootstrapper.Initialize();

            var remoteEventBus = bootstrapper.IocManager.Resolve <IRemoteEventBus>();

            Task.Factory.StartNew(() =>
            {
                while (true)
                {
                    var eventDate = new Test1RemoteEventData()
                    {
                        Name = "Wynnyo"
                    };
                    remoteEventBus.Publish(eventDate);

                    Task.Delay(30000).Wait();
                }
            });

            Console.WriteLine("Any key exit");
            Console.ReadKey();
        }
 public void HandleEvent(Test1RemoteEventData eventData)
 {
     // TODO: 处理类型为  Test1RemoteEventData 消息
 }