2025-01-03 15:38:14 -05:00
|
|
|
|
using CH.CQRS.Query.Health;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using OpenHarbor.CQRS.Abstractions;
|
2025-01-02 17:53:38 -05:00
|
|
|
|
using PoweredSoft.Module.Abstractions;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2025-01-20 18:37:49 -05:00
|
|
|
|
using CH.CQRS.Query.CryptoStat;
|
2025-01-17 17:43:26 -05:00
|
|
|
|
using CH.CQRS.Query.EnergyProvider;
|
|
|
|
|
using CH.CQRS.Query.EnergyRate;
|
|
|
|
|
using CH.CQRS.Query.EnergyRateException;
|
2025-01-02 17:53:38 -05:00
|
|
|
|
|
|
|
|
|
namespace CH.CQRS;
|
|
|
|
|
public class QueryModule : IModule
|
|
|
|
|
{
|
|
|
|
|
public IServiceCollection ConfigureServices(IServiceCollection services)
|
|
|
|
|
{
|
2025-01-03 15:38:14 -05:00
|
|
|
|
services.AddQuery<HealthQuery, HealthQueryResult, HealthQueryHandler>();
|
2025-01-21 17:58:20 -05:00
|
|
|
|
services.AddQuery<CryptoStatQuery, CryptoStatQueryResult, CryptoStatQueryHandler>();
|
2025-01-27 18:58:42 -05:00
|
|
|
|
services.AddModule<EnergyProviderQueriesModule>();
|
|
|
|
|
services.AddModule<EnergyRateQueriesModule>();
|
|
|
|
|
services.AddModule<EnergyRateExceptionQueriesModule>();
|
|
|
|
|
|
2025-01-02 17:53:38 -05:00
|
|
|
|
return services;
|
|
|
|
|
}
|
|
|
|
|
}
|