troubleshooting Question

Broker Class C Sharp with two sources.

Avatar of mentor360
mentor360Flag for Colombia asked on
2 Comments1 Solution200 ViewsLast Modified:
I have my data distributed between a local database exposed by a class with all the logic and a WCF Service.
Some methods (selects) should be called to the local database  due performance, but the more complex ones should be called to the WCF proxy.
Is there a pattern implemented on C# that doesn't involve rewriting every method like a facade to decide wheather to go WCF or Local DB?


My WCF Proxy has the method

IEnumerable<LanguageDTO> getLanguages();

And I have a class conected to the local database that also has the method

IEnumerable<LanguageDTO> getLanguages();

I am building a class called Broker that should expose also the method getLanguages() to the GUI and should decide which getLanguages to call (WCF or Database)

Is there a way of building that class without creating every method again?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros