Skip to content

Commit 1d22f72

Browse files
committed
Add documentation
1 parent 89d013d commit 1d22f72

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

RealTimeWeatherMonitoringApp/Application/Service/AutoParsingService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace 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>
712
public class AutoParsingService<TResult> : IAutoParsingService<TResult>
813
{
914
private readonly List<IParsingStrategy<TResult>> _strategies = [];

RealTimeWeatherMonitoringApp/Application/Service/BotEventDispatcher.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace RealTimeWeatherMonitoringApp.Application.Service;
66

7+
/// <summary>
8+
/// Listens for published bot events, and notifies its subscribers about them.
9+
/// </summary>
710
public class BotEventDispatcher : IBotNotificationService, IBotPublishingService
811
{
912
public event EventHandler<BotEventArgs>? OnBotNotification;

RealTimeWeatherMonitoringApp/Application/Service/MonitoringService.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
namespace 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>
610
public class MonitoringService<TData> : IDataReceiver<TData>, IDataChangeNotifier<TData>
711
{
812
public void Receive(TData data) =>

0 commit comments

Comments
 (0)