ASP.NET Request Pipeline and GoF Chain of Responsibility

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?
 
P

Peter Bromberg [C# MVP]

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
 
C

Cramer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top