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

30 lines
757 B
C#
Raw Normal View History

using CH.CQRS.Service.CryptoStats;
using CH.CQRS.Service.User;
using FluentValidation;
using OpenHarbor.CQRS.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CH.CQRS.Command.CryptoStats;
public class GetCryptoStatsCommand
{
}
2025-01-13 19:19:03 -05:00
public class GetCryptoStatsCommandHandler(CryptoService cryptoService) : ICommandHandler<GetCryptoStatsCommand>
{
public Task HandleAsync(GetCryptoStatsCommand command, CancellationToken cancellationToken = default)
{
return cryptoService.GetCryptoStatsAsync(cancellationToken);
}
}
2025-01-13 19:19:03 -05:00
public class GetCryptoStatsCommandValidator : AbstractValidator<GetCryptoStatsCommand>
{
public GetCryptoStatsCommandValidator()
{
}
}