Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WSNetworkConnector"/> class.
 /// </summary>
 /// <param name="messageTypeCache">The message type cache.</param>
 /// <param name="messageSerializer">The message serializer.</param>
 /// <param name="messageProcessor">The message processor.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="wsHandshakeHandler">The websocket handshake handler.</param>
 /// <param name="tcpClient">The tcp client.</param>
 public WSNetworkConnector(
     IMessageTypeCache messageTypeCache,
     IMessageSerializer messageSerializer,
     IMessageProcessor messageProcessor,
     ILogger <WSNetworkConnector> logger,
     IWSHandshakeHandler wsHandshakeHandler,
     TcpClient tcpClient) : base(messageTypeCache, messageSerializer, messageProcessor, logger, tcpClient)
 {
     _wsHandshakeHandler = wsHandshakeHandler;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WSNetworkConnector"/> class.
 /// </summary>
 /// <param name="messageTypeCache">The message type cache.</param>
 /// <param name="messageSerializer">The message serializer.</param>
 /// <param name="messageProcessor">The message processor.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="wsHandshakeHandler">The websocket handshake handler.</param>
 /// <param name="host">The host string.</param>
 /// <param name="port">The port.</param>
 public WSNetworkConnector(
     IMessageTypeCache messageTypeCache,
     IMessageSerializer messageSerializer,
     IMessageProcessor messageProcessor,
     ILogger <WSNetworkConnector> logger,
     IWSHandshakeHandler wsHandshakeHandler,
     string host, int port) : base(messageTypeCache, messageSerializer, messageProcessor, logger, host, port)
 {
     _wsHandshakeHandler = wsHandshakeHandler;
 }