public override void Start()
 {
     base.Start();
     //这里把所有的对象实例化
     //并注册解析回调
     foreach (var cd in this.GetAllClassDatas())
     {
         var process = CreateInstance <IDebuggerServerProcess>(cd);
         if (process != null)
         {
             int pid = cd.Attribute.IntTag;
             Debugger_NetworkServer.AddLogicProcess(pid, process.OnReceiveMsg);
         }
     }
 }
Exemplo n.º 2
0
 public override void Start()
 {
     base.Start();
     //这里把所有的对象实例化
     //并注册解析回调
     foreach (var item in this.ClassDataMap)
     {
         var process = CreateInstance <IDebuggerServerProcess>(item.Key);
         if (process != null)
         {
             int pid = -1;
             if (int.TryParse(item.Value.Attribute.Tag, out pid))
             {
                 Debugger_NetworkServer.AddLogicProcess(pid, process.OnReceiveMsg);
             }
         }
     }
 }