Beispiel #1
0
 static void AddListenerContext(HttpListenerManager lm, HttpContextInfo ctx)
 {
     lock (registered_channels) {
         lm.pending.Add(ctx);
         // FIXME: this should not be required, but it somehow saves some failures wrt concurrent calls.
         Thread.Sleep(100);
         lm.wait_http_ctx.Set();
     }
 }
Beispiel #2
0
 protected override void OnOpen(TimeSpan timeout)
 {
     httpChannelManager = CreateListenerManager();
     Properties.Add(httpChannelManager);
     httpChannelManager.Open(timeout);
 }
		static void AddListenerContext (HttpListenerManager lm, HttpContextInfo ctx)
		{
			lock (registered_channels) {
				lm.pending.Add (ctx);
				// FIXME: this should not be required, but it somehow saves some failures wrt concurrent calls.
				Thread.Sleep (100);
				lm.wait_http_ctx.Set ();
			}
		}