public interface IProtocol

Summary

Object describing various overarching parameters associated with a particular AMQP protocol variant.

Property Summary

Type Name Summary
string ApiName (r)

Retrieve the protocol's API name, used for printing, configuration properties, IDE integration, Protocols.cs etc.

int DefaultPort (r)

Retrieve the protocol's default TCP port

int MajorVersion (r)

Retrieve the protocol's major version number

int MinorVersion (r)

Retrieve the protocol's minor version number

int Revision (r)

Retrieve the protocol's revision (if specified)

Method Summary

Name Summary
IConnection CreateConnection(ConnectionFactory factory, bool insist, IFrameHandler frameHandler)

Construct a connection from a given set of parameters and a frame handler. The "insist" parameter is passed on to the AMQP connection.open method.

IFrameHandler CreateFrameHandler(AmqpTcpEndpoint endpoint, ConnectionFactory.ObtainSocket socketFactory, int timeout)

Construct a frame handler for a given endpoint.

IModel CreateModel(ISession session)

Construct a protocol model atop a given session.

Property Detail

string ApiName (r)

Summary

Retrieve the protocol's API name, used for printing, configuration properties, IDE integration, Protocols.cs etc.

int DefaultPort (r)

Summary

Retrieve the protocol's default TCP port

int MajorVersion (r)

Summary

Retrieve the protocol's major version number

int MinorVersion (r)

Summary

Retrieve the protocol's minor version number

int Revision (r)

Summary

Retrieve the protocol's revision (if specified)

Method Detail

CreateConnection

IConnection CreateConnection(ConnectionFactory factory, bool insist, IFrameHandler frameHandler)

Return type IConnection
Parameters
Name Type
factory ConnectionFactory
insist bool
frameHandler IFrameHandler

Summary

Construct a connection from a given set of parameters and a frame handler. The "insist" parameter is passed on to the AMQP connection.open method.

CreateFrameHandler

IFrameHandler CreateFrameHandler(AmqpTcpEndpoint endpoint, ConnectionFactory.ObtainSocket socketFactory, int timeout)

Return type IFrameHandler
Parameters
Name Type
endpoint AmqpTcpEndpoint
socketFactory ConnectionFactory.ObtainSocket
timeout int

Summary

Construct a frame handler for a given endpoint.

CreateModel

IModel CreateModel(ISession session)

Return type IModel
Parameters
Name Type
session ISession

Summary

Construct a protocol model atop a given session.