From 99c758b38e090c178ddcc4f605466e705f6f5b48 Mon Sep 17 00:00:00 2001 From: Claudiu Farcas Date: Mon, 26 Apr 2021 08:53:33 +0300 Subject: [PATCH] command notes --- behavioral/command/CommandSample.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/behavioral/command/CommandSample.cs b/behavioral/command/CommandSample.cs index f489388..0ca44e7 100644 --- a/behavioral/command/CommandSample.cs +++ b/behavioral/command/CommandSample.cs @@ -60,6 +60,7 @@ namespace design_patterns.behavioral.command public void Execute() { Console.WriteLine($"Execute add order command for order {Order.ID}"); + // this should be set by a command processor externally HasSucceded = true; } @@ -80,6 +81,7 @@ namespace design_patterns.behavioral.command public void Execute() { Console.WriteLine($"Execute remove order command for order {OrderID}"); + // this should be set by a command processor externally // FORCE failure HasSucceded = false; }