Ejemplo n.º 1
0
 public ClientProxyConnectorFactory(
     IContainer container,
     IClientConnectorFactoryProducer clientConnectorFactoryProducer,
     ILogger logger
     )
 {
     this.container = container;
     this.clientConnectorFactory = clientConnectorFactoryProducer.CreateClient(ConnectorFactory.TransmissionControlProtocol);
     this.logger = logger;
 }
Ejemplo n.º 2
0
        public ClientProxyConnector(
            IClientConnectorFactoryProducer clientConnectorFactoryProducer,
            IOptions <ProxyOptions> proxyOptions,
            ILogger logger
            )
        {
            this.clientConnector = clientConnectorFactoryProducer.CreateClient(ConnectorFactory.TransmissionControlProtocol)
                                   .Create();

            this.proxyOptions = proxyOptions.Value;
            this.logger       = logger;
        }
Ejemplo n.º 3
0
 public SLPServerConnector(
     IClientConnectorFactoryProducer clientConnectorFactoryProducer,
     INameResolverFactory <IAsymetricCrypt> asymetricCryptFactory,
     ISerializerFactory serializer,
     IServerConnectorFactory serverFactory,
     ILogger ILogger,
     IHash IHash
     )
 {
     this.clientConnectorFactoryProducer = clientConnectorFactoryProducer;
     this.asymetricCryptFactory          = asymetricCryptFactory;
     this.serialize = serializer.Resolve(SerializerType.Json);
     this.tcpServer = serverFactory.Create(ConnectorFactory.TransmissionControlProtocol); //Plain Text
     this.logger    = ILogger;
     this.hash      = IHash;
 }
Ejemplo n.º 4
0
 public ServerConnector(IClientConnectorFactoryProducer clientConnectorFactoryProducer)
 {
     this.clientConnectorFactory = clientConnectorFactoryProducer.CreateClient(ConnectorFactory.TransmissionControlProtocol);
 }