Example #1
0
 public IntradomainChannelAwaiter(IntradomainEndpoint endpoint,
                                  IMessageSerializer serializer,
                                  ChannelSettings channelSettings = null,
                                  IntradomainConnectionSettings connectionSettings = null,
                                  ISecurityWrapper serverSecurityWrapper           = null)
     : base(endpoint, serializer, channelSettings, connectionSettings, serverSecurityWrapper)
 {
 }
        internal IntradomainChannel(IntradomainEndpoint endpoint, SocketType socketType, IMessageSerializer serializer)
        {
            Serializer = serializer;
            _endpoint  = endpoint;

            _socket            = new IntradomainSocket(socketType, endpoint.Hub);
            _connectionManager = IntradomainConnectionManager.Instance;
        }
        public IntradomainChannel(IntradomainEndpoint endpoint,
                                  IMessageSerializer serializer,
                                  ChannelSettings channelSettings = null,
                                  IntradomainConnectionSettings connectionSettings = null,
                                  ISecurityWrapper clientSecurityWrapper           = null)
            : this(endpoint, SocketType.Client, serializer)
        {
            _connectionSettings = connectionSettings ?? IntradomainConnectionSettingsBuilder.GetDefaultSettings();
            MaxMessageLength    = channelSettings?.MaxMessageLength ?? ChannelSettings.GetDefault().MaxMessageLength;

            SecurityWrapper = clientSecurityWrapper;
        }
Example #4
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;
        }
Example #5
0
 public IntradomainChannel(IntradomainEndpoint endpoint, IMessageSerializer serializer)
     : this(endpoint, serializer, null, null, null)
 {
 }
Example #6
0
 public IntradomainChannelFactory(IntradomainEndpoint endpointData, IMessageSerializer serializer)
 {
     _endpointData = endpointData;
     _serializer   = serializer;
 }