示例#1
0
        public override void AddRoute(MessageTypeRouting routing, IMessagingRoot root)
        {
            if (Agent == null)
            {
                throw new InvalidOperationException($"The agent has not been initialized for this endpoint");
            }

            routing.AddStaticRoute(Agent);
        }
示例#2
0
        public override void AddRoute(MessageTypeRouting routing, IMessagingRoot root)
        {
            if (Agent == null)
            {
                throw new InvalidOperationException();
            }

            routing.AddStaticRoute(Agent);
        }