Added shared projects
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user