dotnet-cqrs/Svrnty.CQRS.Abstractions/Attributes/CommandNameAttribute.cs

15 lines
287 B
C#

using System;
namespace Svrnty.CQRS.Abstractions.Attributes;
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class CommandNameAttribute : Attribute
{
public CommandNameAttribute(string name)
{
Name = name;
}
public string Name { get; }
}