Click or drag to resize

AmqpCFXEndpointTestSubscribeChannel Method

Tests if this endpoint is capable of subscribing to and receiving message from the specified network address and AMQP source address.

Namespace: CFX.Transport
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
public bool TestSubscribeChannel(
	Uri networkAddress,
	string address,
	out Exception error,
	string virtualHostName = null,
	X509Certificate certificate = null
)

Parameters

networkAddress  Uri
The network address of the target channel.
address  String
The AMQP source address from which messages will be received.
error  Exception
In the case of an error, returns information about the nature of the error.
virtualHostName  String  (Optional)
The name of the virtual host at the destination endpoint. Default is null for default virtual host. For RabbitMQ broker, use format vhost:MYVHOST
certificate  X509Certificate  (Optional)
If secure amqps is being used, this property may optionally include the certificate that will be matched against the server's certificate. Leave null if you do not wish to perform certificate matching (secure communications will still be established using the server's certificate (if using amqps).

Return Value

Boolean
A boolean value indicated whether or not the channel is valid.
See Also