Command, CommandHandler and CommandInvoker

后端 未结 2 1406
星月不相逢
星月不相逢 2021-02-01 08:59

I recently saw a new pattern (new to me) in an open source ASP.NET MVC 3 project that hase many Command, CommandHandler, and Command

2条回答
  •  执笔经年
    2021-02-01 09:43

    To continue the thought by Steven, the command, handler, invoke pattern provides the ability to invoke commands, a SOLID object at a time, that can be called directly from the UI or other top layer that a user or service may interact with directly.

    I believe it's goal is to reduce complexity normally found in N-Tier applications where there are multiple layers (i.e. Service Layer, DataAcces Layer) required to invoke commands (i.e. save an object to a database).

    Out of the many "flavors" of the architecture out there, here's my take: https://github.com/mrogunlana/command-handler-pattern

提交回复
热议问题