public interface IConnectionFactory

Known direct subtypes: ConnectionFactory

Property Summary

Type Name Summary
IDictionary<string,object> ClientProperties (rw)

Dictionary of client properties to be sent to the server.

TimeSpan ContinuationTimeout (rw)

Amount of time protocol operations (e.g. queue.declare) are allowed to take before timing out.

TimeSpan HandshakeContinuationTimeout (rw)

Amount of time protocol handshake operations are allowed to take before timing out.

string Password (rw)

Password to use when authenticating to the server.

ushort RequestedChannelMax (rw)

Maximum channel number to ask for.

uint RequestedFrameMax (rw)

Frame-max parameter to ask for (in bytes).

ushort RequestedHeartbeat (rw)

Heartbeat setting to request (in seconds).

TaskScheduler TaskScheduler (rw)

Advanced option. What task scheduler should consumer dispatcher use.

bool UseBackgroundThreadsForIO (rw)

When set to true, background threads will be used for I/O and heartbeats.

string UserName (rw)

Username to use when authenticating to the server.

string VirtualHost (rw)

Virtual host to access during this connection.

Method Summary

Name Summary
AuthMechanismFactory AuthMechanismFactory(IList<string> mechanismNames)

Given a list of mechanism names supported by the server, select a preferred mechanism, or null if we have none in common.

IConnection CreateConnection(IList<string> hostnames)

Connects to the first reachable hostname from the list.

IConnection CreateConnection()

Create a connection to the specified endpoint.

Property Detail

IDictionary<string,object> ClientProperties (rw)

Summary

Dictionary of client properties to be sent to the server.

TimeSpan ContinuationTimeout (rw)

Summary

Amount of time protocol operations (e.g.
queue.declare
) are allowed to take before timing out.

TimeSpan HandshakeContinuationTimeout (rw)

Summary

Amount of time protocol handshake operations are allowed to take before timing out.

string Password (rw)

Summary

Password to use when authenticating to the server.

ushort RequestedChannelMax (rw)

Summary

Maximum channel number to ask for.

uint RequestedFrameMax (rw)

Summary

Frame-max parameter to ask for (in bytes).

ushort RequestedHeartbeat (rw)

Summary

Heartbeat setting to request (in seconds).

TaskScheduler TaskScheduler (rw)

Summary

Advanced option. What task scheduler should consumer dispatcher use.

bool UseBackgroundThreadsForIO (rw)

Summary

When set to true, background threads will be used for I/O and heartbeats.

string UserName (rw)

Summary

Username to use when authenticating to the server.

string VirtualHost (rw)

Summary

Virtual host to access during this connection.

Method Detail

AuthMechanismFactory

AuthMechanismFactory AuthMechanismFactory(IList<string> mechanismNames)

Return type AuthMechanismFactory
Parameters
Name Type
mechanismNames IList<string>

Summary

Given a list of mechanism names supported by the server, select a preferred mechanism, or null if we have none in common.

CreateConnection

IConnection CreateConnection(IList<string> hostnames)

Return type IConnection
Parameters
Name Type
hostnames IList<string>

Summary

Connects to the first reachable hostname from the list.

Param

List of host names to use

Returns

CreateConnection

IConnection CreateConnection()

Return type IConnection

Summary

Create a connection to the specified endpoint.