Esempio n. 1
0
 public SiloConnection(
     SiloAddress remoteSiloAddress,
     ConnectionContext connection,
     ConnectionDelegate middleware,
     MessageCenter messageCenter,
     ILocalSiloDetails localSiloDetails,
     ConnectionManager connectionManager,
     ConnectionOptions connectionOptions,
     ConnectionCommon connectionShared,
     ProbeRequestMonitor probeMonitor,
     ConnectionPreambleHelper connectionPreambleHelper)
     : base(connection, middleware, connectionShared)
 {
     this.messageCenter            = messageCenter;
     this.connectionManager        = connectionManager;
     this.connectionOptions        = connectionOptions;
     this.probeMonitor             = probeMonitor;
     this.connectionPreambleHelper = connectionPreambleHelper;
     this.LocalSiloAddress         = localSiloDetails.SiloAddress;
     this.LocalClusterId           = localSiloDetails.ClusterId;
     this.RemoteSiloAddress        = remoteSiloAddress;
 }
 public SiloConnectionListener(
     IServiceProvider serviceProvider,
     IOptions <ConnectionOptions> connectionOptions,
     IOptions <SiloConnectionOptions> siloConnectionOptions,
     MessageCenter messageCenter,
     IOptions <EndpointOptions> endpointOptions,
     ILocalSiloDetails localSiloDetails,
     ConnectionManager connectionManager,
     ConnectionCommon connectionShared,
     ProbeRequestMonitor probeRequestMonitor,
     ConnectionPreambleHelper connectionPreambleHelper)
     : base(serviceProvider.GetRequiredServiceByKey <object, IConnectionListenerFactory>(ServicesKey), connectionOptions, connectionManager, connectionShared)
 {
     this.siloConnectionOptions    = siloConnectionOptions.Value;
     this.messageCenter            = messageCenter;
     this.localSiloDetails         = localSiloDetails;
     this.connectionManager        = connectionManager;
     this.connectionShared         = connectionShared;
     this.probeRequestMonitor      = probeRequestMonitor;
     this.connectionPreambleHelper = connectionPreambleHelper;
     this.endpointOptions          = endpointOptions.Value;
 }
 public GatewayInboundConnection(
     ConnectionContext connection,
     ConnectionDelegate middleware,
     Gateway gateway,
     OverloadDetector overloadDetector,
     ILocalSiloDetails siloDetails,
     ConnectionOptions connectionOptions,
     MessageCenter messageCenter,
     ConnectionCommon connectionShared,
     ConnectionPreambleHelper connectionPreambleHelper)
     : base(connection, middleware, connectionShared)
 {
     this.connectionOptions        = connectionOptions;
     this.gateway                  = gateway;
     this.overloadDetector         = overloadDetector;
     this.messageCenter            = messageCenter;
     this.connectionPreambleHelper = connectionPreambleHelper;
     this.loadSheddingCounter      = CounterStatistic.FindOrCreate(StatisticNames.GATEWAY_LOAD_SHEDDING);
     this.myAddress                = siloDetails.SiloAddress;
     this.MessageReceivedCounter   = CounterStatistic.FindOrCreate(StatisticNames.GATEWAY_RECEIVED);
     this.MessageSentCounter       = CounterStatistic.FindOrCreate(StatisticNames.GATEWAY_SENT);
 }
Esempio n. 4
0
 public GatewayConnectionListener(
     IServiceProvider serviceProvider,
     IOptions <ConnectionOptions> connectionOptions,
     IOptions <SiloConnectionOptions> siloConnectionOptions,
     OverloadDetector overloadDetector,
     ILocalSiloDetails localSiloDetails,
     IOptions <EndpointOptions> endpointOptions,
     MessageCenter messageCenter,
     ConnectionManager connectionManager,
     ConnectionCommon connectionShared,
     ConnectionPreambleHelper connectionPreambleHelper,
     ILogger <GatewayConnectionListener> logger)
     : base(serviceProvider.GetRequiredServiceByKey <object, IConnectionListenerFactory>(ServicesKey), connectionOptions, connectionManager, connectionShared)
 {
     this.siloConnectionOptions = siloConnectionOptions.Value;
     this.overloadDetector      = overloadDetector;
     this.gateway                  = messageCenter.Gateway;
     this.localSiloDetails         = localSiloDetails;
     this.messageCenter            = messageCenter;
     this.connectionShared         = connectionShared;
     this.connectionPreambleHelper = connectionPreambleHelper;
     this.logger          = logger;
     this.endpointOptions = endpointOptions.Value;
 }