Hello everyone!
I`m trying to create connection using .net assembly in Microsoft Dynamics NAV, like it described here
https://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v3.6.0/rabbitmq-dotnet-client-3.6.0-client-htmldoc/html/type-RabbitMQ.Client.ConnectionFactory.htmlRMQConnectionFactory := RMQConnectionFactory.ConnectionFactory();
WITH RMQConnectionFactory DO BEGIN
UserName := 'xxx';
Password := 'xxxxxxx';
VirtualHost := 'mdms';
...
RMQIConnection := RMQConnectionFactory.CreateConnection();
Everything is OK, except that there is no hostname property in RMQConnectionFactory variable.
Is it obsolete or something?
----------------------------
When I tried to use
Type := GETDOTNETTYPE(DotNetIList);
Type := Type.MakeGenericType(DotNetIList); //Error appears: A call to System.RuntimeType.MakeGenericType failed with this message: The type of one or more arguments does not match the method's parameter type.
DotNetIList := Activator.CreateInstance(Type);
RMQIConnection := RMQConnectionFactory.CreateConnection(DotNetIList,''); //Error appears: The function call was ambiguous. No matching method was found.
Can anyone help, how should I create connection?