Class Connectable<T>
- Namespace
 - MassTransit.Util
 
- Assembly
 - MassTransit.Abstractions.dll
 
Maintains a collection of connections of the generic type
public class Connectable<T> where T : class
  Type Parameters
TThe connectable type
- Inheritance
 - 
      
      Connectable<T>
 
- Derived
 
- Inherited Members
 
Constructors
Connectable()
public Connectable()
  Properties
Count
The number of connections
public int Count { get; }
  Property Value
Methods
All(Func<T, bool>)
public bool All(Func<T, bool> callback)
  Parameters
Returns
Connect(T)
Connect a connectable type
public ConnectHandle Connect(T connection)
  Parameters
connectionTThe connection to add
Returns
- ConnectHandle
 The connection handle
ForEach(Action<T>)
public void ForEach(Action<T> callback)
  Parameters
callbackAction<T>
ForEachAsync(Func<T, Task>)
Enumerate the connections invoking the callback for each connection
public Task ForEachAsync(Func<T, Task> callback)
  Parameters
Returns
- Task
 An awaitable Task for the operation