IPCConnectedFactoryExchange / CFX

Apache License 2.0
75 stars 69 forks source link

Some clarification on request / response #44

Open caseydonohue opened 4 years ago

caseydonohue commented 4 years ago

I have a three part question about responses.

  1. I assume if an MES system wanted to perform a WhoIsThereRequest, it would publish to a channel that all the machine endpoints are subscribed to. Is this correct? If so, would the machines just publish a response to a channel that the MES system subscribes to? Or is there a different way to respond to that query.

  2. It appears ExecuteRequest is a direct link to an ad-hoc "amqp server" resident within the SDK (assuming a requestUri and a listener is added). So endpoint A initiates a direct ExectureRequest directly to endpoint B and the OnRequestReceived event is fired on endpoint B. How does endpoint B respond to the request? Does it just respond with it's own ExecuteRequest.

  3. Finally, what is the difference between these two events: OnRequestReceived versus OnCFXMessageReceivedFromListener.

Abhishek150995 commented 4 years ago

Are you able to execute AddListner(QueueName) successfully?