c# - Proxy for a software to increase its functionality -
i have software communicates api of website. how increase functionality connect various other api's without touching code in it? think easiest way write proxy resides between api , softwre translates incoming messages other api base api software "understands". should more information on implementing proxy using c#? thank help.
hmm sounds 1 of software design patterns come across every day. think fits best "proxy" bridge.
from sourcemaking
intent - decouple abstraction implementation 2 can vary independently. - publish interface in inheritance hierarchy, , bury implementation in own inheritance hierarchy. - beyond encapsulation, insulation problem “hardening of software arteries” has occurred using subclassing of abstract base class provide alternative implementations. locks in compile-time binding between interface , implementation. abstraction , implementation cannot independently extended or composed.
the example in c# http://sourcemaking.com/design_patterns/bridge/c%2523
however if want proxy design pattern (which imho doesn't suit problem) listed here:
edit: ok, more generalised solution, go proxy pattern , @ existing implementations proxies. you'll find quite few answers answer question on site:
Comments
Post a Comment