Beispiel #1
0
        public LotServer(LotServerConfiguration config, Ninject.IKernel kernel) : base(config, kernel)
        {
            this.Config = config;

            Kernel.Bind <LotServerConfiguration>().ToConstant(Config);
            Kernel.Bind <LotHost>().To <LotHost>().InSingletonScope();
            Kernel.Bind <CityConnections>().To <CityConnections>().InSingletonScope();
            Kernel.Bind <LotServer>().ToConstant(this);

            LotLivenessTimer.AutoReset = true;
            LotLivenessTimer.Elapsed  += LivenessCheck;

            Lots = Kernel.Get <LotHost>();
        }
Beispiel #2
0
        public LotServer(LotServerConfiguration config, Ninject.IKernel kernel) : base(config, kernel)
        {
            this.Config = config;
            this.UnexpectedDisconnectWaitSeconds = 30;
            this.TimeoutIfNoAuth = config.Timeout_No_Auth;

            Kernel.Bind <LotServerConfiguration>().ToConstant(Config);
            Kernel.Bind <LotHost>().To <LotHost>().InSingletonScope();
            Kernel.Bind <CityConnections>().To <CityConnections>().InSingletonScope();
            Kernel.Bind <LotServer>().ToConstant(this);

            LotLivenessTimer.AutoReset = true;
            LotLivenessTimer.Elapsed  += LivenessCheck;

            Lots = Kernel.Get <LotHost>();
        }
Beispiel #3
0
 public ShardShutdownHandler(LotHost lots, IKernel kernel)
 {
     Lots   = lots;
     Kernel = kernel;
 }
Beispiel #4
0
 public VoltronConnectionLifecycleHandler(LotHost lots, IDAFactory da)
 {
     Lots      = lots;
     DAFactory = da;
 }
Beispiel #5
0
 public ShardShutdownHandler(LotHost lots, IKernel kernel)
 {
     this.Lots   = lots;
     this.Kernel = kernel;
 }
Beispiel #6
0
 public LotNegotiationHandler(LotHost lots)
 {
     this.Lots = lots;
 }