Example #1
0
        public DynamicRoutingEngine(Fiber fiber)
        {
            _fiber = fiber;

            _agenda = new Agenda();
            _root   = new RootNode();

            _configurator = new DynamicRoutingEngineConfigurator(this);
        }
Example #2
0
        public void Configure(Action <RoutingEngineConfigurator> callback)
        {
            _fiber.Add(() =>
            {
                DynamicRoutingEngineConfigurator configurator = _configurator;

                callback(configurator);

                //                   new TraceRoutingEngineVisualizer().Show(this);

                _agenda.Run();
            });
        }