using MediatR; using System; namespace Netmash.Application.DataContracts { public interface ICommand { } public abstract class Command : ICommand, IRequest { public Metadata Metadata { get; } protected Command() { Metadata = new Metadata() { CorrelationId = Guid.NewGuid() }; } protected Command(Metadata metadata) { Metadata = metadata; } } }