Esempio n. 1
0
 static DefaultChannelHandler()
 {
     StateManager = new CometStateManager(new InProcCometStateProvider());
     StateManager.ClientInitialized += new CometClientEventHandler(StateManager_ClientInitialized);
     StateManager.ClientSubscribed  += new CometClientEventHandler(StateManager_ClientSubscribed);
     StateManager.IdleClientKilled  += new CometClientEventHandler(StateManager_IdleClientKilled);
 }
Esempio n. 2
0
        public CometWaitThread(CometStateManager stateManager)
        {
            WaitRequests = new List <CometWaitRequest>()
                           StateManager = stateManager;

            Thread t = new Thread(new ThreadStart(QueueCometWaitRequest_WaitCallback));

            t.IsBackground = false;
            t.Start();
        }