Mid GoF Patterns

Chain Setup:?

  • In the Program class, we set up a chain of responsibility by calling

SetNext() on the infoLogger and passing it the errorLogger. This

ensures that the InfoLogger will process log messages with the Info level,

while the ErrorLogger will handle Error level messages.

More from Design Patterns in C#

All questions for this course