We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbd535 commit 010b4d4Copy full SHA for 010b4d4
RealTimeWeatherMonitoringApp/Infrastructure/Repository/BotRepository.cs
@@ -0,0 +1,13 @@
1
+using RealTimeWeatherMonitoringApp.Domain.Interfaces.Repository;
2
+using RealTimeWeatherMonitoringApp.Domain.Models;
3
+using RealTimeWeatherMonitoringApp.Infrastructure.Interfaces;
4
+
5
+namespace RealTimeWeatherMonitoringApp.Infrastructure.Repository;
6
7
+public class BotRepository<TEvaluated> : IBotRepository<TEvaluated>
8
+{
9
+ private readonly IBotInitializer<TEvaluated> _botInitializer;
10
+ public BotRepository(IBotInitializer<TEvaluated> botInitializer) => _botInitializer = botInitializer;
11
12
+ public IEnumerable<Bot<TEvaluated>> GetAll() => _botInitializer.InitializeAndGetAllBots();
13
+}
0 commit comments