14 lines
359 B
C#
14 lines
359 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using OpenHarbor.CQRS.Abstractions;
|
|
|
|
namespace DigitalOps.CQRS.Queries.Health;
|
|
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
public static IServiceCollection AddHealthQueries(this IServiceCollection services)
|
|
{
|
|
services.AddQuery<HealthQuery, bool, HealthQueryHandler>();
|
|
|
|
return services;
|
|
}
|
|
} |