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); } }
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); } }
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); }
internal void _RegsiterMessageHandlerRoute(sRoute[] routes) { lock (_myRoutes) { _myRoutes.AddRange(routes); } if (_parent != null) { foreach (sRoute srt in routes) _parent._RegisterRoute(srt, this); } }
internal static void _UnRegisterMessageHandlerRoute(sRoute[] routes) { _core._UnRegsiterMessageHandlerRoute(routes); }