Interface IBrokerClientsConnector
Initializes and connects the configured producers and consumers.
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
public interface IBrokerClientsConnector
Methods
ConnectAllAsync(CancellationToken)
Calls all the IBrokerClientsInitializer and initializes the producers and consumers (if InitializeAsync() wasn't called yet), then initializes the connection to the message broker(s).
Declaration
ValueTask ConnectAllAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A CancellationToken used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask | A ValueTask representing the asynchronous operation. |
DisconnectAllAsync()
Disconnects all the producers and consumers.
Declaration
ValueTask DisconnectAllAsync()
Returns
| Type | Description |
|---|---|
| ValueTask | A ValueTask representing the asynchronous operation. |
InitializeAsync()
Calls all the IBrokerClientsInitializer and initializes the producers and consumers.
Declaration
ValueTask InitializeAsync()
Returns
| Type | Description |
|---|---|
| ValueTask | A ValueTask representing the asynchronous operation. |