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.Type | consumerType | Type consumer type. |
System.Func<System.Type, System.Object> | consumerFactory | the factory method to create the consumer. |
System.String | queueName | The queue name. |
ReceiveEndpointOptions | receiveEndpointOptions | The receive endpoint options. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | A System.Threading.Tasks.Task that represents outstanding operation. The result of the Task is the queue name that the receive endpoint has connected to. |
Disconnect(String)
Disconnects a receive endpoint.
Declaration
Task Disconnect(string queueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task that represents outstanding operation. |