AssociationRegistry..::..RegisterTransport Method
Records a mapping between an address and the corresponding (transport, associationEventListener) pair.
Namespace:
Akka.Remote.TransportAssembly: Akka.Remote (in Akka.Remote.dll)
Syntax
public void RegisterTransport( TestTransport transport, Task<IAssociationEventListener> associationEventListenerTask )
Public Sub RegisterTransport ( _ transport As TestTransport, _ associationEventListenerTask As Task(Of IAssociationEventListener) _ )
public: void RegisterTransport( TestTransport^ transport, Task<IAssociationEventListener^>^ associationEventListenerTask )
Parameters
- transport
- Type: Akka.Remote.Transport..::..TestTransport
The transport that is to be registered. The address of this transport will be used as a key.
- associationEventListenerTask
- Type: Task<(Of <(<'IAssociationEventListener>)>)>
The Task that will be completed with the listener that will handle the events for the given transport.