Class BrokerCollection
Inheritance
System.Object
BrokerCollection
Implements
System.Collections.Generic.IReadOnlyList<IBroker>
System.Collections.Generic.IReadOnlyCollection<IBroker>
System.Collections.Generic.IEnumerable<IBroker>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
public class BrokerCollection : IBrokerCollection, IReadOnlyList<IBroker>, IReadOnlyCollection<IBroker>, IEnumerable<IBroker>, IEnumerable
Constructors
| Improve this doc View sourceBrokerCollection(IEnumerable<IBroker>)
Initializes a new instance of the BrokerCollection class.
Declaration
public BrokerCollection(IEnumerable<IBroker> brokers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IBroker> | brokers | The brokers to be added to the collection. |
Properties
| Improve this doc View sourceCount
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Declaration
public IBroker this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
IBroker |
Methods
| Improve this doc View sourceAddConsumer(IConsumerEndpoint)
Declaration
public IConsumer AddConsumer(IConsumerEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
IConsumerEndpoint | endpoint |
Returns
Type | Description |
---|---|
IConsumer |
ConnectAsync()
Declaration
public Task ConnectAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
DisconnectAsync()
Declaration
public Task DisconnectAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
GetEnumerator()
Declaration
public IEnumerator<IBroker> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<IBroker> |
GetProducer(IProducerEndpoint)
Declaration
public IProducer GetProducer(IProducerEndpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
IProducerEndpoint | endpoint |
Returns
Type | Description |
---|---|
IProducer |
Explicit Interface Implementations
| Improve this doc View sourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable