Esempio n. 1
0
        public ServerManager(IServerMonitor serverMonitor,
                             IBatchNotification <ServerNotification> serverBatchNotificationPublisher,
                             ITradeStrategyCacheManager tradeStrategyCacheManager,
                             StrategyNotificationHub strategyNotificationHub,
                             ServerNotificationHub serverNotificationHub)
        {
            ServerMonitor = serverMonitor;

            this.serverBatchNotificationPublisher = serverBatchNotificationPublisher;
            this.tradeStrategyCacheManager        = tradeStrategyCacheManager;
            this.strategyNotificationHub          = strategyNotificationHub;
            this.serverNotificationHub            = serverNotificationHub;

            disposables = new List <IDisposable>();

            ObserverTradeStrategyCacheManager();
            ObserverStrategyNotificationHub();
            ObserverServerNotificationHub();
        }
        public ServerNotificationPublisherContext(IServerMonitor serverMonitor, ServerNotificationHub notificationHub)
        {
            this.notificationHub = notificationHub;

            this.serverMonitor = serverMonitor;
        }