For this microservice, we will have both a deployment Start and Stop method. This will provide us with the capability to signal all willing recipients that a deployment has started and stopped.
Our messages
Deployment start message
Here is what the DeploymentStartMessage looks like:
/// <summary> A deployment start message. </summary>
[Serializable]
[Queue("Deployments", ExchangeName = "EvolvedAI")]
public class DeploymentStartMessage
{
public long ID { get; set; }
public DateTime Date { get; set; }
}
Deployment stop message
And here is what...