22 lines
450 B
C#
22 lines
450 B
C#
using System;
|
|
|
|
namespace Svrnty.CQRS.Events.Abstractions.Discovery;
|
|
|
|
/// <summary>
|
|
/// Default implementation of IEventMeta.
|
|
/// </summary>
|
|
public sealed class EventMeta : IEventMeta
|
|
{
|
|
public EventMeta(Type eventType, string? description = null)
|
|
{
|
|
EventType = eventType;
|
|
Description = description;
|
|
}
|
|
|
|
public string Name => EventType.Name;
|
|
|
|
public Type EventType { get; }
|
|
|
|
public string? Description { get; }
|
|
}
|