示例#1
0
 /// <summary>
 ///
 /// </summary>
 private void StartAfter()
 {
     //TODO network
     if (configure != null)
     {
         Aggr.Network.Start(configure);
         Aggr.Debug("{0} network.io host:{1} port:{2} is started...", ServerID, configure.Host, configure.Port);
     }
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 public void RunWaitLoop()
 {
     Runtime.Start();
     while (!Runtime.IsCancel)
     {
         try
         {
             Runtime.Update();
         }
         catch (Exception e)
         {
             Aggr.Error("App runtime Update method error", e);
         }
         Thread.Sleep(Runtime.Frequency);
     }
 }