与构建控制器或动作类相反,您创建的是一个页面,在这个页面上放置组件,然后定义每个组件如何响应用户输入。
Instead of creating a controller or action class, you create a page, place components on it, and define how each component reacts to user input.
对于这个方法有一些优势:我们将批处理动作的意图存储在了事件存储器中。流程控制器自动进行回滚或类似的操作。
There are some advantages to this approach: we store the intent of the bulk action in the event store. The saga automates rollback or equivalent.
我们的控制器或动作方法没有任何参数。
Our controller or action method doesn't have any parameters.
应用推荐