Ejemplo n.º 1
0
        public async Task StartNotificationListenerAsync()
        {
            _clientSocket = PlatformServices.SocketFactory.GetSocket();
            await _clientSocket.ConnectAsync(_settings.Host, _settings.TcpPort);

            var stream = _clientSocket.GetInputStream();

            ListenForNotificationsAsync(stream);
        }
Ejemplo n.º 2
0
        public async Task StartNotificationListener()
        {
            _clientSocket = PlatformServices.SocketFactory.GetSocket();
            await _clientSocket.ConnectAsync(_settings.Host, _settings.TcpPort);

            var stream = _clientSocket.GetInputStream();

            //
            // compiler complains about not waiting for results to be ready
            // we can safely ignore this because we get the results throug
            // a different channel
            //
#pragma warning disable CS4014
            ListenForNotifications(stream);
#pragma warning restore CS4014
        }