Files
components/LiteCharms.Features/Utilities/Commands/ComputeHashCommand.cs
T
2026-05-03 16:10:27 +02:00

17 lines
441 B
C#

namespace LiteCharms.Features.Utilities.Commands;
public class ComputeHashCommand : IRequest<Result<string>>
{
public string? Input { get; set; }
private ComputeHashCommand(string input) => Input = input;
public static ComputeHashCommand Create(string input)
{
if(string.IsNullOrWhiteSpace(input))
throw new ArgumentException("Input is required", nameof(input));
return new(input);
}
}