Click or drag to resize
Akka.NETAssociationRegistry Class
Shared state among TestTransport instances. Coordinates the transports and the means of communication between them.
Inheritance Hierarchy
SystemObject
  Akka.Remote.TransportAssociationRegistry

Namespace:  Akka.Remote.Transport
Assembly:  Akka.Remote (in Akka.Remote.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public class AssociationRegistry

The AssociationRegistry type exposes the following members.

Constructors
  NameDescription
Public methodAssociationRegistry
Initializes a new instance of the AssociationRegistry class
Top
Methods
  NameDescription
Public methodStatic memberClear
Wipes out all of the AssociationRegistry instances retained by this process.
Public methodClearLog
Clears the current contents of the log
Public methodDeregisterAssociation
Removes an association.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExistsAssociation
Tests if an association was registered.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGet
Retrieves the specified AssociationRegistry associated with the key.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRemoteReadHandlerFor
Returns the event handler corresponding to the remote endpoint of the given local handle. In other words it returns the listener that will receive InboundPayload events when is called.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLogActivity
Logs a transport activity
Public methodLogSnapshot
Gets a snapshot of the current transport activity log
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRegisterListenerPair
Registers two event listeners corresponding to the two endpoints of an association.
Public methodRegisterTransport
Records a mapping between an address and the corresponding (transport, associationEventListener) pair.
Public methodRemoteListenerRelativeTo
Returns the remote endpoint for a pair of endpoints relative to the owner of the supplied TestAssociationHandle.
Public methodReset
Clears the state of the entire registry.
Remarks
This method is not atomic and does not use a critical section when clearing transports, listeners, and logs.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransportFor
Returns the transport bound to the given address.
Public methodTransportsReady
Indicates if all given transports were successfully registered. No associations can be established between transports that are not yet registered.
Top
Extension Methods
Remarks
NOTE: This is a global shared state between different actor systems. The purpose of this class is to allow dynamically loaded TestTransports to set up a shared AssociationRegistry.Extensions could not be used for this purpose, as the injection of the shared instance must happen during the startup time of the actor system. Association registries are looked up via a string key. Until we find a better way to inject an AssociationRegistry to multiple actor systems it is strongly recommended to use long, randomly generated strings to key the registry to avoid interference between tests.
See Also