Our messages
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.
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 our DeploymentStopMessage
looks like:
/// <summary> A deployment stop message. </summary> [Serializable] [Queue("Deployments", ExchangeName = "EvolvedAI")] public class DeploymentStopMessage { public long ID { get; set; } public DateTime Date { get; set; } }