The next sample application shows how a duplex communication can be done between the client and the service. The client starts the connection to the service. After the client connects to the service, the service can call back into the client. For duplex communication, a contract must be specified that is implemented in the client. Here the contract…