mirror of
https://dev.azure.com/tstanciu94/Packages/_git/Netmash
synced 2025-06-21 19:22:38 +03:00
25 lines
477 B
C#
25 lines
477 B
C#
using MediatR;
|
|
using System;
|
|
|
|
namespace Netmash.Application.DataContracts
|
|
{
|
|
public interface ICommand
|
|
{
|
|
}
|
|
|
|
public abstract class Command<TResponse> : ICommand, IRequest<TResponse>
|
|
{
|
|
public Metadata Metadata { get; }
|
|
|
|
protected Command()
|
|
{
|
|
Metadata = new Metadata() { CorrelationId = Guid.NewGuid() };
|
|
}
|
|
|
|
protected Command(Metadata metadata)
|
|
{
|
|
Metadata = metadata;
|
|
}
|
|
}
|
|
}
|