zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/Infrastructure/IdentifiedCommand.cs

12 lines
336 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
using MediatR;
namespace ZeroFramework.DeviceCenter.Application.Infrastructure
{
public class IdentifiedCommand<TRequest, TResponse>(TRequest command, string id) : IRequest<TResponse> where TRequest : IRequest<TResponse>
{
public TRequest Command { get; } = command;
public string Id { get; } = id;
}
}