constellation-api/CH.CQRS/Command/CryptoStats/ServiceCollectionExtension.cs

14 lines
410 B
C#

using Microsoft.Extensions.DependencyInjection;
using OpenHarbor.CQRS.FluentValidation;
namespace CH.CQRS.Command.CryptoStats;
public static class ServiceCollectionExtension
{
public static IServiceCollection AddCryptoCommand(this IServiceCollection services)
{
services.AddCommand<GetCryptoStatsCommand, GetCryptoStatsCommandHandler, GetCryptoStatsCommandValidator>();
return services;
}
}