Interface IReceiveEndpointConnector
Defines methods for managing the connection of a receive endpoint to a queue.
Namespace: Copper.MassTransit.Interface
Assembly: Copper.MassTransit.dll
Syntax
public interface IReceiveEndpointConnector
Methods
View SourceConnect(Type, Func<Type, Object>, String, ReceiveEndpointOptions)
Connects a receive endpoint.
Declaration
Task<string> Connect(Type consumerType, Func<Type, object> consumerFactory, string queueName, ReceiveEndpointOptions receiveEndpointOptions)
Parameters
Type | Name | Description |
---|---|---|
System. |
consumerType | Type consumer type. |
System. |
consumerFactory | the factory method to create the consumer. |
System. |
queueName | The queue name. |
Receive |
receiveEndpointOptions | The receive endpoint options. |
Returns
Type | Description |
---|---|
System. |
A System. |
Disconnect(String)
Disconnects a receive endpoint.
Declaration
Task Disconnect(string queueName)
Parameters
Type | Name | Description |
---|---|---|
System. |
queueName | The queue name. |
Returns
Type | Description |
---|---|
System. |
A System. |