Пример #1
0
 internal void _UnRegisterRoute(sRoute route, Core core)
 {
     lock (_subRoutes)
     {
         List <Core> cores = new List <Core>();
         if (_subRoutes.ContainsKey(route))
         {
             cores = _subRoutes[route];
             _subRoutes.Remove(route);
         }
         cores.Remove(core);
         _subRoutes.Add(route, cores);
     }
     if (_parent != null)
     {
         _parent._UnRegisterRoute(route, this);
     }
 }
Пример #2
0
 internal void _UnRegsiterMessageHandlerRoute(sRoute[] routes)
 {
     lock (_myRoutes)
     {
         foreach (sRoute srt in routes)
             _myRoutes.Remove(srt);
     }
     if (_parent != null)
     {
         foreach (sRoute srt in routes)
             _parent._UnRegisterRoute(srt, this);
     }
 }
Пример #3
0
 internal void _UnRegisterRoute(sRoute route, Core core)
 {
     lock (_subRoutes)
     {
         List<Core> cores = new List<Core>();
         if (_subRoutes.ContainsKey(route))
         {
             cores = _subRoutes[route];
             _subRoutes.Remove(route);
         }
         cores.Remove(core);
         _subRoutes.Add(route, cores);
     }
     if (_parent != null)
         _parent._UnRegisterRoute(route, this);
 }
Пример #4
0
 internal void _RegsiterMessageHandlerRoute(sRoute[] routes)
 {
     lock (_myRoutes)
     {
         _myRoutes.AddRange(routes);
     }
     if (_parent != null)
     {
         foreach (sRoute srt in routes)
             _parent._RegisterRoute(srt, this);
     }
 }
Пример #5
0
 internal static void _UnRegisterMessageHandlerRoute(sRoute[] routes)
 {
     _core._UnRegsiterMessageHandlerRoute(routes);
 }