C# Class Amqp.ConnectionFactory

The factory to create connections asynchronously.
Inheritance: Amqp.ConnectionFactoryBase
Datei anzeigen Open project: xamarin/mini-hacks Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ConnectionFactory ( ) : System

Constructor to create a connection factory.

CreateAsync ( Address address ) : Task

Creates a new connection.

CreateAsync ( Address address, Amqp.Framing.Open open, OnOpened onOpened ) : Task

Creates a new connection with a custom open frame and a callback to handle remote open frame.

Method Details

ConnectionFactory() public method

Constructor to create a connection factory.
public ConnectionFactory ( ) : System
return System

CreateAsync() public method

Creates a new connection.
public CreateAsync ( Address address ) : Task
address Address The address of remote endpoint to connect to.
return Task

CreateAsync() public method

Creates a new connection with a custom open frame and a callback to handle remote open frame.
public CreateAsync ( Address address, Amqp.Framing.Open open, OnOpened onOpened ) : Task
address Address The address of remote endpoint to connect to.
open Amqp.Framing.Open If specified, it is sent to open the connection, otherwise an open frame created from the AMQP settings property is sent.
onOpened OnOpened If specified, it is invoked when an open frame is received from the remote peer.
return Task