Processing messages

After configuring our queue and exchange, we then subscribe to both the deployment start and stop messages. When our deployment start message arrives, we kick off our timer. If the deployment stop message arrives prior to our time limit, we will stop the timer without incident. If the deployment stop message does not arrive prior to our time limit, we will alert the user:

public void ProcessDeploymentStartMessage
(DeploymentStartMessage msg)
{
__deploymentTimer.Stop();
__deploymentTimer.Start();
}
public void ProcessDeploymentStopMessage(DeploymentStopMessage msg)
{
__deploymentTimer.Stop();
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset