Ejemplo n.º 1
0
        public void Start()
        {
            try
            {
                LoadConfiguration();

                Console.WriteLine("Starting management interface on port {0}.", _config.ManagementPort);
                _packeteer.Start(_config.ManagementPort);

                Console.WriteLine("starting routes...");
                _routers.Start();
            }
            catch (Exception ex)
            {
                Singletons.EventLog.WriteEvent(new EventLogging.EventPayload
                {
                    Severity   = EventLogging.Severity.Error,
                    CustomText = "Failed to start router.",
                    Exception  = ex
                });
            }
        }