예제 #1
0
        public override void FinishedInitialization()
        {
            base.FinishedInitialization();
            ServiceManager.Get <ISemanticProcessor>().Register <LoggerMembrane, LoggerReceptor>();
            IAppConfigService config = ServiceManager.Get <IAppConfigService>();

            key = config.GetValue("PaperTrailAppKey");
            UdpPaperTrail.IP   = config.GetValue("PaperTrailAppIP");
            UdpPaperTrail.Port = config.GetValue("PaperTrailAppPort").to_i();
        }
예제 #2
0
        private static void StartWebServer()
        {
            IWebServerService server        = serviceManager.Get <IWebServerService>();
            IAppConfigService configService = serviceManager.Get <IAppConfigService>();
            string            ip            = configService.GetValue("ip");
            string            ports         = configService.GetValue("ports");

            int[] portVals = ports.Split(',').Select(p => p.Trim().to_i()).ToArray();
            server.Start(ip, portVals);
        }
        private Email CreateEmail()
        {
            Email             email  = new Email();
            IAppConfigService config = ServiceManager.Get <IAppConfigService>();

            email.AddTo(config.GetValue("emailExceptionTo"));
            email.Subject = config.GetValue("emailExceptionSubject");

            return(email);
        }
예제 #4
0
        private static void StartWebServer()
        {
            ISemanticProcessor semProc = serviceManager.Get <ISemanticProcessor>();

            semProc.Register <WebServerMembrane, AccountRouteReceptor>();

            IWebServerService server        = serviceManager.Get <IWebServerService>();
            IAppConfigService configService = serviceManager.Get <IAppConfigService>();
            string            ip            = configService.GetValue("ip");
            string            ports         = configService.GetValue("ports");

            int[] portVals = ports.Split(',').Select(p => p.Trim().to_i()).ToArray();
            server.Start(ip, portVals);
        }