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