17 lines
438 B
C#
17 lines
438 B
C#
using PARR.Domain.Enums;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace PARR.Domain.Common.Rabbit.Messages
|
|
{
|
|
/// <summary>
|
|
/// Модель для отправки сообщений через ITaskManagement
|
|
/// </summary>
|
|
public record TaskMessage
|
|
{
|
|
public Guid TaskId { get; init; }
|
|
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public TaskTypeEnum TypeCode { get; init; }
|
|
}
|
|
}
|