Click or drag to resize

AmqpCFXEndpointTestPublishChannel Method

Tests if the specified network address and AMQP target address is capable of receiving messages published from this endpoint.

Namespace: CFX.Transport
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
public bool TestPublishChannel(
	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 target address to which messages will be published.
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