17 lines
441 B
C#
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);
|
|
}
|
|
}
|