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>(); }
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>(); }
public ShardShutdownHandler(LotHost lots, IKernel kernel) { Lots = lots; Kernel = kernel; }
public VoltronConnectionLifecycleHandler(LotHost lots, IDAFactory da) { Lots = lots; DAFactory = da; }
public ShardShutdownHandler(LotHost lots, IKernel kernel) { this.Lots = lots; this.Kernel = kernel; }
public LotNegotiationHandler(LotHost lots) { this.Lots = lots; }