public MessageStreamResource(IServerBroker serverBroker) { _serverBroker = serverBroker; _senderSubject = new Subject <Container>(); // setup heart beat to keep alive client connections Observable.Interval(new TimeSpan(0, 0, 20), TaskPoolScheduler.Default).Subscribe(x => _senderSubject.OnNext(Container.Ping())); // TODO: See if we can get Defered working there // lets subscribe, hope of the thread and then broadcast to all connections //_serverBroker.OffRecieverThread.ListenAll().Subscribe(message => Observable.Defer(() => Observable.Start(() => ProcessMessage(message), TaskPoolScheduler.Default))); _serverBroker.OffRecieverThread.ListenAll().Subscribe(message => Observable.Start(() => ProcessMessage(message), TaskPoolScheduler.Default)); }
public MessageStreamResource(IServerBroker serverBroker) { _serverBroker = serverBroker; _senderSubject = new Subject<Container>(); // setup heart beat to keep alive client connections Observable.Interval(new TimeSpan(0, 0, 20), TaskPoolScheduler.Default).Subscribe(x => _senderSubject.OnNext(Container.Ping())); // TODO: See if we can get Defered working there // lets subscribe, hope of the thread and then broadcast to all connections //_serverBroker.OffRecieverThread.ListenAll().Subscribe(message => Observable.Defer(() => Observable.Start(() => ProcessMessage(message), TaskPoolScheduler.Default))); _serverBroker.OffRecieverThread.ListenAll().Subscribe(message => Observable.Start(() => ProcessMessage(message), TaskPoolScheduler.Default)); }
public HttpChannelReceiver(IServerBroker messageServerBus) { _messageServerBus = messageServerBus; }
public InProcessPublisher(IServerBroker messageBus) { _messageBus = messageBus; }
public InProcessChannel(IServerBroker messageBus, IMessageConverter messageConverter) { _messageBus = messageBus; _messageConverter = messageConverter; }
public WebSocketChannelReceiver(IServerBroker serverBroker) { _serverBroker = serverBroker; }
public MessageIngressResource(IServerBroker messageServerBus, IJsonSerializerProvider serializerProvider) { _messageServerBus = messageServerBus; _jsonSerializer = serializerProvider.GetJsonSerializer(); }