Table of Contents

Interface ITransportManager

Namespace
JobFlow.Core.Infrastructure.Transports
Assembly
JobFlow.Core.dll

Manages transport connections.

public interface ITransportManager : IDisposable
Inherited Members
Extension Methods

Remarks

The default implementation supports referencing the standard Transports. Transport connections are also cached within the default implementation of this interface.

While not generally recommended, accessing transports directly can be done via the appropriate ITransportConnectionFactory. Note, however, if multiple transport implementations are in use, there may be multiple ITransportConnectionFactory implementations - one for each transport type and connection string.

Methods

GetConnection(string)

Retrieves a connection to the transport connection configured for the given transport name.

ITransportConnection GetConnection(string transportName)

Parameters

transportName string

Returns

ITransportConnection

Remarks

This gets a ITransportConnection, which can then be used for retrieving an IListener or ISender. The returned ITransportConnection will not be linked to a specific artifact name (a specific queue, for instance).

GetConnectionOption(string)

Return the connection options object for a given transport. The object will be typed to the transport's appropriate options class.

TransportConnectionOptions GetConnectionOption(string transportName)

Parameters

transportName string

Returns

TransportConnectionOptions

GetListener(string)

Get a sender for a given transport.

IListener GetListener(string name)

Parameters

name string

Returns

IListener

GetSender(string)

Get a listener for a given transport.

ISender GetSender(string name)

Parameters

name string

Returns

ISender