Ejemplo n.º 1
0
 public RocketMonitoringStrategy(ISettingsProvider settingsProvider, IMainModel mainModel, StocksManager stocksManager, IEventAggregator2 eventAggregator, ILogger <RocketMonitoringStrategy> logger)
 {
     StocksManager = stocksManager;
     Settings      = settingsProvider.Settings;
     MainModel     = mainModel;
     Logger        = logger;
     eventAggregator.SubscribeOnPublishedThread(this);
 }
Ejemplo n.º 2
0
 public ArbitrageMonitoringStrategy(ISettingsProvider settingsProvider, IMainModel mainModel, StocksManager stocksManager,
                                    IEventAggregator2 eventAggregator, ILogger <ArbitrageMonitoringStrategy> logger, IUSADataManager usaDataManager)
 {
     StocksManager = stocksManager;
     Settings      = settingsProvider.Settings;
     SetChatId(Settings);
     MainModel   = mainModel;
     DataManager = usaDataManager;
     Logger      = logger;
     eventAggregator.SubscribeOnPublishedThread(this);
 }
Ejemplo n.º 3
0
 public StatusViewModel(IEventAggregator2 eventAggregator)
 {
     EventAggregator = eventAggregator;
     eventAggregator.SubscribeOnPublishedThread(this);
 }
Ejemplo n.º 4
0
 public static void Subscribe(this IEventAggregator2 eventAggregator, object subscriber)
 {
     eventAggregator.SubscribeOnPublishedThread(subscriber);
 }