Пример #1
0
 public static void Stop()
 {
     PublishHelper.GetInstance().Dispose();
     SubscribeHelper.GetInstance().Dispose();
     PubSubServer.GetInstance().StopServer();
 }
Пример #2
0
 public static void Init()
 {
     PubSubServer.GetInstance().InitServer(CommonPort.PubServerPort, CommonPort.SubServerPort);
     SubscribeHelper.GetInstance();
     PublishHelper.GetInstance();
 }