© Vaskaran Sarcar 2020
V. SarcarDesign Patterns in C#https://doi.org/10.1007/978-1-4842-6062-3_6

6. Proxy Pattern

Vaskaran Sarcar1 
(1)
Garia, Kolkata, West Bengal, India
 

This chapter covers the Proxy pattern.

GoF Definition

Provide a surrogate or placeholder for another object to control access to it.

Concept

You need to support this kind of design because, in many situations, direct communication with an original object is not always possible. This is due to many factors, including security and performance issues, resource constraints, the final product is in the development phase, and so forth. Proxies can be of different types, but fundamentally it is a substitute (or a placeholder) for an original object. As a result, when a client interacts with ...

Get Design Patterns in C#: A Hands-on Guide with Real-world Examples now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.