20 lines
510 B
C#
20 lines
510 B
C#
using CH.CQRS.Query.Health;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using OpenHarbor.CQRS.Abstractions;
|
|
using PoweredSoft.Module.Abstractions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CH.CQRS;
|
|
public class QueryModule : IModule
|
|
{
|
|
public IServiceCollection ConfigureServices(IServiceCollection services)
|
|
{
|
|
services.AddQuery<HealthQuery, HealthQueryResult, HealthQueryHandler>();
|
|
return services;
|
|
}
|
|
}
|