Interface IConsumer
Потребитель сообщений.
Namespace:InfinniPlatform.MessageQueue
Assembly:InfinniPlatform.MessageQueue.Abstractions.dll
Syntax
public interface IConsumer
Properties
| Improve this Doc View SourceMessageType
Тип тела сообщения.
Declaration
Type MessageType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
| Improve this Doc View SourceConsume(IMessage)
Обработчик сообщения.
Declaration
Task Consume(IMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessage | message | Сообщение. |
Returns
| Type | Description |
|---|---|
| Task |
OnError(Exception)
Обработчик ошибок.
Declaration
Task<bool> OnError(Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | Исключение. |
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> |