constellation-api/CH.CQRS/QueryModule.cs

26 lines
925 B
C#
Raw Permalink Normal View History

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;
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)
{
services.AddQuery<HealthQuery, HealthQueryResult, HealthQueryHandler>();
services.AddQuery<EnergyProviderQuery, EnergyProviderQueryResult, EnergyProviderQueryHandler>();
services.AddQuery<EnergyRateQuery, EnergyRateQueryResult, EnergyRateQueryHandler>();
services.AddQuery<EnergyRateExceptionQuery, EnergyRateExceptionQueryResult, EnergyRateExceptionQueryHandler>();
2025-01-02 17:53:38 -05:00
return services;
}
}