internal IntradomainChannel(IntradomainSocket socket, IMessageSerializer serializer)
        {
            Serializer = serializer;

            _socket            = socket;
            _connectionManager = IntradomainConnectionManager.Instance;
        }
        internal IntradomainChannel(IntradomainEndpoint endpoint, SocketType socketType, IMessageSerializer serializer)
        {
            Serializer = serializer;
            _endpoint  = endpoint;

            _socket            = new IntradomainSocket(socketType, endpoint.Hub);
            _connectionManager = IntradomainConnectionManager.Instance;
        }
Esempio n. 3
0
        internal IntradomainChannelAwaiterBase(IntradomainEndpoint endpoint,
                                               IMessageSerializer serializer,
                                               ChannelSettings channelSettings = null,
                                               IntradomainConnectionSettings connectionSettings = null,
                                               ISecurityWrapper serverSecurityWrapper           = null)
        {
            Enforce.NotNull(endpoint, nameof(endpoint));
            Enforce.NotNull(serializer, nameof(serializer));

            ListeningEndpoint     = endpoint;
            _serializer           = serializer;
            ChannelSettings       = channelSettings;
            ConnectionSettings    = connectionSettings;
            ServerSecurityWrapper = serverSecurityWrapper;

            _connectionManager = IntradomainConnectionManager.Instance;
        }