예제 #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;
 }