public SiloConnectionFactory(
     IServiceProvider serviceProvider,
     IOptions <ConnectionOptions> connectionOptions,
     IOptions <SiloConnectionOptions> siloConnectionOptions,
     ILocalSiloDetails localSiloDetails,
     ConnectionCommon connectionShared,
     ProbeRequestMonitor probeRequestMonitor)
     : base(serviceProvider.GetRequiredServiceByKey <object, IConnectionFactory>(ServicesKey), serviceProvider, connectionOptions)
 {
     this.serviceProvider       = serviceProvider;
     this.siloConnectionOptions = siloConnectionOptions.Value;
     this.localSiloDetails      = localSiloDetails;
     this.connectionShared      = connectionShared;
     this.probeRequestMonitor   = probeRequestMonitor;
 }
Exemple #2
0
 public SiloConnection(
     SiloAddress remoteSiloAddress,
     ConnectionContext connection,
     ConnectionDelegate middleware,
     MessageCenter messageCenter,
     ILocalSiloDetails localSiloDetails,
     ConnectionManager connectionManager,
     ConnectionOptions connectionOptions,
     ConnectionCommon connectionShared,
     ProbeRequestMonitor probeMonitor)
     : base(connection, middleware, connectionShared)
 {
     this.messageCenter     = messageCenter;
     this.connectionManager = connectionManager;
     this.connectionOptions = connectionOptions;
     this.probeMonitor      = probeMonitor;
     this.LocalSiloAddress  = localSiloDetails.SiloAddress;
     this.RemoteSiloAddress = remoteSiloAddress;
 }
Exemple #3
0
 public SiloConnectionListener(
     IServiceProvider serviceProvider,
     IOptions <ConnectionOptions> connectionOptions,
     IOptions <SiloConnectionOptions> siloConnectionOptions,
     MessageCenter messageCenter,
     IOptions <EndpointOptions> endpointOptions,
     ILocalSiloDetails localSiloDetails,
     ConnectionManager connectionManager,
     ConnectionCommon connectionShared,
     ProbeRequestMonitor probeRequestMonitor)
     : 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.endpointOptions       = endpointOptions.Value;
 }