ASP.NET Request Pipeline and GoF Chain of Responsibility

  • Thread starter Thread starter Cramer
  • Start date Start date
C

Cramer

More of a theoretical question here: It just occurred to me that the ASP.NET
request pipeline delivers much of the GoF Chain of Responsibility pattern.
What do you think? If it does not, then, why not?
 
A little bit, maybe. The Chain of Responsibility pattern really deals with
having a list of "handler" objects that have limitations on the nature of
the requests they can work on. If a handler cannot process a request it
passes it on to the next handler in the "chain of command". For example, if
you have an unusual request that a bank teller cannot handle, they would
pass it on to the Manager.
Peter
 
Ahhh, I understand the distinction. Thanks.



Peter Bromberg said:
A little bit, maybe. The Chain of Responsibility pattern really deals with
having a list of "handler" objects that have limitations on the nature of
the requests they can work on. If a handler cannot process a request it
passes it on to the next handler in the "chain of command". For example, if
you have an unusual request that a bank teller cannot handle, they would
pass it on to the Manager.
Peter
 
Back
Top