Interface IRabbitMqMessageConsumer
Assembly: Volo.Abp.RabbitMQ.dll
Syntax
public interface IRabbitMqMessageConsumer
Methods
BindAsync(string)
Declaration
Task BindAsync(string routingKey)
Parameters
| Type |
Name |
Description |
| string |
routingKey |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
OnMessageReceived(Func<IModel, BasicDeliverEventArgs, Task>)
Declaration
void OnMessageReceived(Func<IModel, BasicDeliverEventArgs, Task> callback)
Parameters
| Type |
Name |
Description |
| System.Func<T1, T2, TResult><RabbitMQ.Client.IModel, RabbitMQ.Client.Events.BasicDeliverEventArgs, System.Threading.Tasks.Task> |
callback |
|
UnbindAsync(string)
Declaration
Task UnbindAsync(string routingKey)
Parameters
| Type |
Name |
Description |
| string |
routingKey |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Extension Methods