Processing deployment messages

There are two deployment messages—a start and a stop. The start is generated at the start of a software deployment, and the stop is generated at its completion. In between, we track the time and, if 15 minutes elapses from the start without receiving a stop message, we will trigger an alert that the deployment is taking too long and should be checked:

bool ProcessDeploymentStartMessage([NotNull] DeploymentStartMessage msg)
{
Console.WriteLine("Received DeploymentStart Message");
RILogManager.Default?.SendInformation("Received DeploymentStart Message");
return true;
}
bool ProcessDeploymentStopMessage([NotNull] DeploymentStopMessage msg)
{
Console.WriteLine("Received DeploymentStop Message");
RILogManager.Default?.SendInformation("Received DeploymentStop Message");
return true;
}
..................Content has been hidden....................

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