Skip to content

AhmedTarekHasan/ProtectingPublicMethodsFromUnauthorizedCallingConcept

Repository files navigation

Protecting Public Methods From Illogical Calls In .NET C#

A full guide with code samples and explanation.


The Chain of Responsibility Design Pattern is one of the behavioral design patterns.

It allows passing a request or an object through a chain of handlers.

Once a handler receives a request, it decides whether it can process the request or pass it to the next handler in the chain.

If you already have some experience with Web Development, most probably you heard about something called Middleware. The whole system of handling Middleware parts is using the Chain of Responsibility Design Pattern.


If you are interested into reading more about this topic, you can read the rest of the article.


If you want to support me:

▶ Subscribe to Medium using my referral link
▶ Subscribe to Medium Newsletter
▶ Subscribe to LinkedIn Newsletter
▶ Follow me on Medium
▶ Follow me on Twitter
▶ Follow me on LinkedIn


Authors: