The Chain of Responsibility pattern supports decoupling by passing a request between potential receivers, whereas the command pattern supports using a command object to encapsulate a request.
责任链模式通过在可能的接受方传递请求来解耦,而命令模式是通过将请求封装成对象。
Chain.NET (or NChain) is a generic implementation of Chain Of Responsibility design pattern for .NET and Mono platforms.
NET(又名NChain)是 职责链模式在.NET和Mono平台上的一个实现。
One GoF pattern could fit perfectly in this situation: Chain of Responsibility.
有一个 GoF 模式非常适合这种情形: 职责链(Chain of Responsibility)。
应用推荐