![]() Proxies like the decorator forward the request on to another object. Smart proxies – Adds to or change the request before sending them.Remote proxies – Encodes the requests and send them across the network.Authentication proxies – These proxies handle the authentication part of the subject class if necessary.Virtual proxies – These class handle the creation of the object which is slower to create or not necessary in long run.There can be following four main type of proxies The main players in this design pattern are the proxy class as well as subject interface, subject class and the client. The client only knows about the proxy class and the main complex class stays behind the scene. Or in other words it is a representative class (which is simple in functioning) which represents a more complex class which is created once the requirements are met. Proxy class is basically is an object which control the creation and access of the other object. Proxy pattern is another structural pattern which is used to control the creation and access of the objects. This post will also include the use cases where and how this pattern can be used with live C# example. ![]() In this article I will discuss about the proxy pattern. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |