Class Message<T>
Сообщение в очереди.
Inheritance
System.Object
Message<T>
Namespace:InfinniPlatform.MessageQueue
Assembly:InfinniPlatform.MessageQueue.Abstractions.dll
Syntax
public class Message<T> : object, IMessage<T>, IMessage
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceMessage(T, String, IDictionary<String, Object>)
Конструктор.
Declaration
public Message(T body, string appId = null, IDictionary<string, object> headers = null)
Parameters
Type | Name | Description |
---|---|---|
T | body | Тело сообщения. |
System.String | appId | Идентификатор отправителя сообщения. |
IDictionary<System.String, System.Object> | headers | Заголовки сообщения. |
Properties
| Improve this Doc View SourceAppId
Идентификатор приложения-отправителя сообщения.
Declaration
public string AppId { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
| Improve this Doc View SourceBody
Тело сообщения.
Declaration
public T Body { get; }
Property Value
Type | Description |
---|---|
T |
Implements
| Improve this Doc View SourceHeaders
Заголовки сообщения.
Declaration
public IDictionary<string, object> Headers { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Object> |
Implements
Methods
| Improve this Doc View SourceGetBody()
Возвращает тело сообщения.
Declaration
public object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Implements
| Improve this Doc View SourceGetBodyType()
Возвращает тип тела сообщения.
Declaration
public Type GetBodyType()
Returns
Type | Description |
---|---|
Type |