Example #1
0
 public void Handle(VehicleAlreadyCleanSignal signal)
 {
     _memory.TryGet("VWSS", out VehicleWashingStartedSignal _signal);
     _signal.InvoiceCallback.Invoke("No wash step was applied since the vehicle is already clean!");
     _memory.Flush();
 }
Example #2
0
 public void Handle(VehicleReadySignal signal)
 {
     _memory.TryGet("VWSS", out VehicleWashingStartedSignal _signal);
     _signal.InvoiceCallback.Invoke(GenerateInvoiceReport());
     _memory.Flush();
 }