Exemple #1
0
        static void Main(string[] args)
        {
            ///初始化命令接收者和命令请求者还有具体命令
            InfoReceiver infoReceiver = new InfoReceiver();

            InfoCommandDelete infoCommandDelete = new InfoCommandDelete(infoReceiver);

            InfoInvoke infoInvoke = new InfoInvoke(infoCommandDelete);
            var        result     = infoInvoke.ExecuteInvoke();

            Console.WriteLine(result);
        }
Exemple #2
0
 public InfoCommandDelete(InfoReceiver infoReceiver) : base(infoReceiver)
 {
 }
Exemple #3
0
 public Command(InfoReceiver infoReceiver)
 {
     this._infoReceiver = infoReceiver;
 }
Exemple #4
0
 public InfoCommandUpdate(InfoReceiver infoReceiver) : base(infoReceiver)
 {
 }