示例#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>();
        }
示例#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>();
        }
示例#3
0
 public ShardShutdownHandler(LotHost lots, IKernel kernel)
 {
     Lots   = lots;
     Kernel = kernel;
 }
示例#4
0
 public VoltronConnectionLifecycleHandler(LotHost lots, IDAFactory da)
 {
     Lots      = lots;
     DAFactory = da;
 }
示例#5
0
 public ShardShutdownHandler(LotHost lots, IKernel kernel)
 {
     this.Lots   = lots;
     this.Kernel = kernel;
 }
示例#6
0
 public LotNegotiationHandler(LotHost lots)
 {
     this.Lots = lots;
 }