public void TryToStartLongPollingRequestWithoutDefineLongPollingDataSource()
        {
            var httpDataSource = new HttpDataSource("http://www.google.pl");
            var connection     = new BayeuxConnection(httpDataSource, null);

            connection.StartLongPolling(new HandshakeRequest(BayeuxConnectionTypes.LongPolling, null, null));
        }
Beispiel #2
0
 /// <summary>
 /// Starts a long polling connection and subscribes to the user channel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void connection_Connected(object sender, BayeuxConnectionEventArgs e)
 {
     try
     {
         _connection.Connect();
         _connection.StartLongPolling();
         _connection.Subscribe(_channel);
     }
     catch (Exception)
     {
         Console.WriteLine("connection_Connected");
     }
 }