Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which pattern to use
Message
De
16/06/2005 13:10:01
 
 
À
16/06/2005 10:57:59
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01023978
Message ID:
01024041
Vues:
23
I want to make my distributed application flexible on which technology to use between the UI and the BO. In a local scenario, I want the application to use .NET Remoting. In a remote scenario, Web Services should be used.

Hi, Sylvain,

FWIW, I just published an article in the newest edition of CoDe magazine (July/August '05) where I cover this situation. I have a Winform piece that needs to communicate with the back-end either via remoting or web services.

I present a class that demonstrates some of the characteristics of the factory and facade patterns. It returns a generic connection object that can be cast to either a web service reference or an interface to a remoting object. Yes, interfaces are used to accomplish this. If you'd like more information on this, let me know.

If you're at DevTeach next week, I'm doing a session on building reporting apps in a distibuted environment, where I'll cover this technique - a winform app that generates a report using either web services or remoting. (My session schedule just changed today, I'm presenting on tuesday afternoon).

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform