命令,CommandHandler和CommandInvoker [英] Command, CommandHandler and CommandInvoker

查看:307
本文介绍了命令,CommandHandler和CommandInvoker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近看到的一个开放源码的 ASP.NET MVC 3 项目,长谷许多命令的新格局(新的我) CommandHandler CommandInvoker -with他们的接口 - 我无法理解的格局!你能告诉我这是什么模式的名字和我在哪里可以学习一下吧?什么是它的好处吗?先谢谢了。

I recently saw a new pattern (new to me) in an open source ASP.NET MVC 3 project that hase many Command, CommandHandler, and CommandInvoker -with their interfaces- and I can't understand the pattern! Can you tell me what is this pattern's name and where can I learn about it? And what is its benefits please? Thanks in advance.

更新:我在谈论这个项目:

与RavenDB 图库

推荐答案

在这篇文章看看:

同时......在我的体系结构的命令侧

它包含有关为什么要使用命令和命令处理程序作为你的架构的一部分,一个完整的解释。一种架构模式,如CQRS是基于命令和事件,但即使没有应用CQRS,在你的架构中使用的命令是非常有价值的,因为文章解释。

It contains a thorough explanation about why you want to use commands and command handlers as part of your architecture. An architectural pattern such as CQRS is based on commands and events, but even without applying CQRS, the use of commands in your architecture is very valuable, as the article explains.

该RavenGallery项目然而,太小,真正看到这个命令/处理模式的好处。这种模式启动时,一个项目变得更大大放异彩。

The RavenGallery project however, is too small to really see the benefits of this command/handler model. This model starts to shine when a project gets bigger.

这篇关于命令,CommandHandler和CommandInvoker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆