20 lines
528 B
C#
20 lines
528 B
C#
|
using MediatR;
|
|||
|
|
|||
|
namespace Seyounth.Auto.Hs.Runtime.Handlers;
|
|||
|
|
|||
|
public class WeighSpindleRequest : IRequest<string>
|
|||
|
{
|
|||
|
public decimal? Weight { get; }
|
|||
|
public string Barcode { get; }
|
|||
|
|
|||
|
public WeighSpindleRequest(string barcode, decimal? weight)
|
|||
|
{
|
|||
|
Weight = weight;
|
|||
|
Barcode = barcode;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public abstract class WeighSpindleRequestHandler : IRequestHandler<WeighSpindleRequest, string>
|
|||
|
{
|
|||
|
public abstract Task<string> Handle(WeighSpindleRequest request, CancellationToken cancellationToken);
|
|||
|
}
|