Ejemplo n.º 1
0
 public WatchdogController(Model m, SharesController s, BufferService b, OverlordManagerService o)
 {
     model = m;
     shareController = s;
     bufferService = b;
     logger = LogManager.GetLogger("faplog");
     overlordLauncherService = o;
 }
Ejemplo n.º 2
0
        public ApplicationCore(IContainer c)
        {
            container = c;
            model = container.Resolve<Model>();
            logService = container.Resolve<LogService>();

            connectionController = c.Resolve<ConnectionController>();
            //Don't send two request went doing a post..
            ServicePointManager.Expect100Continue = false;
            //Don't limit connections to a single node - 100 I think is the upper limit.
            ServicePointManager.DefaultConnectionLimit = 100;
            //System.Net.ServicePointManager.MaxServicePointIdleTime = 20000000;
            updateChecker = container.Resolve<UpdateCheckerService>();
            interfaceController = container.Resolve<InterfaceController>();
            overlordManagerService = container.Resolve<OverlordManagerService>();
            singleInstanceService = new SingleInstanceService("FAP");
            registerProtocolService = new RegisterProtocolService();
        }