I have a scenario where I will implement Command pattern like described in this article.Actually from an Asp.Net MVC view, some user will invoke different commands/actions like Start Live Video, Start Live Image, Start Recording etc.A Web Socket Server will then receive these commands and dispatch them to a Receiver (a Windows based application). The receiver before executing the requested command, will first acknowledge the received command and will confirm back to sender that the sent command has been received for processing.Note: The acknowledgement and/or the actual response will be returned to the Web Socket Server always in an asynchronous manner and then accordingly dispatched to the sender. Means whole system is event driven based.So my question is: Given the Command pattern described in the article, now which best way I could add Command Acknowledgement to it and will the returned acknowledgment and/or actual response be also in the form of some command/message or something else? If we are to go something different for dispatching the Acknowledgement or response, then which pattern to use for it?
How can you add acknowledgement functionality to a Command pattern, given the response from receiver is gotten asynchronously on Server?
c#;asp.net;sockets