AssociationRegistry..::..RegisterListenerPair Method
Registers two event listeners corresponding to the two endpoints of an association.
Namespace:
Akka.Remote.TransportAssembly: Akka.Remote (in Akka.Remote.dll)
Syntax
public void RegisterListenerPair( Tuple<Address, Address> key, Tuple<IHandleEventListener, IHandleEventListener> listeners )
Public Sub RegisterListenerPair ( _ key As Tuple(Of Address, Address), _ listeners As Tuple(Of IHandleEventListener, IHandleEventListener) _ )
public: void RegisterListenerPair( Tuple<Address^, Address^>^ key, Tuple<IHandleEventListener^, IHandleEventListener^>^ listeners )
Parameters
- key
- Type: Tuple<(Of <(<'Address, Address>)>)>
Ordered pair of addresses representing an association. First element must be the address of the initiator.
- listeners
- Type: Tuple<(Of <(<'IHandleEventListener, IHandleEventListener>)>)>
A pair of listeners that will be responsible for handling the events of the two endpoints of the association. Elements in the Tuple must be in the same order as the addresses in [key].