Inheritance: IClientChannel, IServerChannel
Beispiel #1
0
 public void Relay(RelayMessage message)
 {
     if (_signalingClient == null)
     {
         _signalingClient = _container.Resolve<SignalingClient>();
     }
     _signalingClient.Relay(message);
 }
        public ConnectionStatus ConnectToSignalingServer(ConnectionOwner connectionOwner)
        {
            _streamSocket = new StreamSocket();
            _streamSocket.ConnectAsync(new HostName(SignalingSettings.SignalingServerHost),
                                       SignalingSettings.SignalingServerPort, SocketProtectionLevel.PlainSocket)
                         .AsTask()
                         .Wait();

            _isConnected = true;

            _signalingClient = _unityContainer.Resolve<SignalingClient>();

            StartReading();

            return new ConnectionStatus
            {
                IsConnected = _isConnected
            };
        }
Beispiel #3
0
 public ClientChannel(SignalingClient signalingClient)
 {
     _signalingClient = signalingClient;
 }