2017-03-03 12:03:31 +01:00
|
|
|
|
using MediatR;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Ordering.API.Application.Commands
|
|
|
|
|
{
|
2017-05-19 18:03:05 +03:00
|
|
|
|
public class IdentifiedCommand<T, R> : IRequest<R>
|
|
|
|
|
where T : IRequest<R>
|
2017-03-03 12:03:31 +01:00
|
|
|
|
{
|
|
|
|
|
public T Command { get; }
|
|
|
|
|
public Guid Id { get; }
|
|
|
|
|
public IdentifiedCommand(T command, Guid id)
|
|
|
|
|
{
|
|
|
|
|
Command = command;
|
|
|
|
|
Id = id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|