Ejemplo n.º 1
0
 private static void StartGM()
 {
     if (server != null)
     {
         server.Stop();
         server = null;
     }
     server = new GMServer("/gm", false);
     server.Init();
     server.Start(ConfigLoader.Config.EpGMM);
 }
Ejemplo n.º 2
0
 public override void Execute(INotification notification)
 {
     GMNote note = notification as GMNote;
     if (note == null)
     {
         if (notification.Name == GMCommand.GMStart)
         {
             StartGM();
         }
         else if (notification.Name == Application.APPSTOP)
         {
             if (server != null)
             {
                 server.Stop();
                 server = null;
             }
         }
         return;
     }
 }