0

Chain of Responsability

benazet.vincent 2 months ago 0
Hi,

I read the CoR pattern and I stuck into the Intent paragraph : 

Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each handler decides either to process the request or to pass it to the next handler in the chain.

I found that sentence a bit confusing. I misunderstand the pattern. I thought one handler do one thing process the request and terminate the chain or pass it to the next handler. I thought the handler can't do both.

Best regards