File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
RealTimeWeatherMonitoringApp/Presentation Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ using Microsoft . Extensions . DependencyInjection ;
2+ using RealTimeWeatherMonitoringApp . Application . Interfaces ;
3+ using RealTimeWeatherMonitoringApp . Application . Interfaces . Service ;
4+ using RealTimeWeatherMonitoringApp . Domain . Interfaces . Service ;
5+ using RealTimeWeatherMonitoringApp . Domain . Models ;
16using RealTimeWeatherMonitoringApp . Presentation ;
27
8+ // Inject Dependencies
39var provider = DependencyInjector . CreateServiceProvider ( ) ;
10+
11+ // Initialize Bot Events
12+ var weatherBotPublisher = provider . GetRequiredService < IBotPublishingService > ( ) ;
13+ var weatherDataNotifier = provider . GetRequiredService < IDataChangeNotifier < WeatherData > > ( ) ;
14+ var weatherEventManager = provider . GetRequiredService < IBotEventManager < WeatherData > > ( ) ;
15+ weatherEventManager . Attach ( weatherDataNotifier , weatherBotPublisher ) ;
16+
17+ // Start
418new UserController ( provider ) . Start ( ) ;
You can’t perform that action at this time.
0 commit comments