-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
In my application I have an instance of two classes. This exception only occurs when both classes are instantiates within my application.
// MTConnectMqtt.cs
protected override bool CreateImplementation()
{
_client = new MTConnectAgentApplication();
return true;
}
protected override bool ConnectImplementation()
{
_client.StartAgent(new AgentApplicationConfiguration() {
Modules = new []
{
new Dictionary<object, object> ()
{
{"mqtt-relay", new Dictionary<object, object>()
{
{"server", Configuration.Address},
{"port", Configuration.Port},
{"timeout", 10000},
{"clientId", Properties.GetProperty<string>("client_id")},
{"topicPrefix", "MTConnect"},
{"topicStructure", "Document"},
{"currentInterval", 10000},
{"sampleInterval", 500},
{"documentFormat", "json-cppAgent"}
}}
}
}
}, true);
return true;
}
and
// MTConnectAgent.cs
protected override bool CreateImplementation()
{
_client = new MTConnectAgentApplication();
return true;
}
protected override bool ConnectImplementation()
{
_client.StartAgent(new AgentApplicationConfiguration() {
Modules = new []
{
new Dictionary<object, object> ()
{
{"http-server", new Dictionary<object, object>()
{
{"port", Configuration.Port},
}}
}
}
});
return true;
}
Metadata
Metadata
Assignees
Labels
No labels