示例#1
0
 public MessageRouter(MessageQueue queue)
 {
     _queue     = queue;
     _semaphore = new SemaphoreSlim(1, 1);
     _callbacks = new Dictionary <string, List <Action <IBayeuxMessage> > >(StringComparer.OrdinalIgnoreCase);
 }
示例#2
0
 public Connection(Uri endpoint, MessageQueue queue, IEnumerable <BayeuxProtocolExtension> extensions, IBayeuxLogger logger)
 {
     _broker    = new Broker(new LongPollingTransport(endpoint, logger), extensions);
     _heartbeat = new ConnectionHeartbeat(_broker, queue);
 }
示例#3
0
 public ConnectionHeartbeat(Broker broker, MessageQueue queue)
 {
     _broker = broker;
     _queue  = queue;
 }