AmqpCFXEndpointTestPublishChannel Method |
Tests if the specified network address and AMQP target address is capable of receiving messages published from this endpoint.
Namespace: CFX.TransportAssembly: CFX (in CFX.dll) Version: 2.0.0+5bb1f71a933ed371a0f5f2d5e7db34c89b75f3ea
Syntaxpublic bool TestPublishChannel(
Uri networkAddress,
string address,
out Exception error,
string virtualHostName = null,
X509Certificate certificate = null
)
Public Function TestPublishChannel (
networkAddress As Uri,
address As String,
<OutAttribute> ByRef error As Exception,
Optional virtualHostName As String = Nothing,
Optional certificate As X509Certificate = Nothing
) As Boolean
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
BooleanA boolean value indicated whether or not the channel is valid.
See Also