Transport..::..Associate Method

Asynchronously opens a logical duplex link between two Transport entities over a network. It could be backed with a real transport layer connection (TCP), socketless connections provided over datagram protocols (UDP), and more. This call returns a Task of an AssociationHandle. A faulted Task indicates that the association attempt was unsuccessful. If the exception is InvalidAssociationException then the association request was invalid and it's impossible to recover.

Namespace:  Akka.Remote.Transport
Assembly:  Akka.Remote (in Akka.Remote.dll)

Syntax


public Task<AssociationHandle> Associate(
	Address remoteAddress
)
Public Function Associate ( _
	remoteAddress As Address _
) As Task(Of AssociationHandle)
public:
Task<AssociationHandle^>^ Associate(
	Address^ remoteAddress
)

Parameters

remoteAddress
Type: Akka.Actor..::..Address
The address of the remote transport entity.

Return Value

A status representing the failure or success containing an AssociationHandle.