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); }
public CometWaitThread(CometStateManager stateManager) { WaitRequests = new List <CometWaitRequest>() StateManager = stateManager; Thread t = new Thread(new ThreadStart(QueueCometWaitRequest_WaitCallback)); t.IsBackground = false; t.Start(); }