17 lines
472 B
C#
17 lines
472 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace RabbitMQHelper
|
|
{
|
|
public class RabbitMessage
|
|
{
|
|
public RabbitMessage(object data, Dictionary<string, string> headers = null)
|
|
{
|
|
this.Data = data;
|
|
this.Headers = headers;
|
|
}
|
|
public string RecordId { get; set; } = Guid.NewGuid().ToString("N");
|
|
public object Data { get; set; }
|
|
public Dictionary<string,string> Headers { get; set; }
|
|
}
|
|
} |