File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
RealTimeWeatherMonitoringApp/Application/Service Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace RealTimeWeatherMonitoringApp . Application . Service ;
66
7+ /// <summary>
8+ /// A simple iterative approach,
9+ /// tries all strategies one by one until it finds a valid parsing strategy and returns the result.
10+ /// </summary>
11+ /// <typeparam name="TResult">Parsed data type</typeparam>
712public class AutoParsingService < TResult > : IAutoParsingService < TResult >
813{
914 private readonly List < IParsingStrategy < TResult > > _strategies = [ ] ;
Original file line number Diff line number Diff line change 44
55namespace RealTimeWeatherMonitoringApp . Application . Service ;
66
7+ /// <summary>
8+ /// Listens for published bot events, and notifies its subscribers about them.
9+ /// </summary>
710public class BotEventDispatcher : IBotNotificationService , IBotPublishingService
811{
912 public event EventHandler < BotEventArgs > ? OnBotNotification ;
Original file line number Diff line number Diff line change 33
44namespace RealTimeWeatherMonitoringApp . Application . Service ;
55
6+ /// <summary>
7+ /// A simple data receiver that notifies its subscribers about any new data it receives.
8+ /// </summary>
9+ /// <typeparam name="TData">Monitored data type</typeparam>
610public class MonitoringService < TData > : IDataReceiver < TData > , IDataChangeNotifier < TData >
711{
812 public void Receive ( TData data ) =>
You can’t perform that action at this time.
0 commit comments