Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which pattern to use
Message
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01023978
Message ID:
01024019
Views:
18
Thanks a lot Victor. So if I understand correctly, I define a common base class for the .NET Remoting and Web Service classes and I instanciate the right one from a ConcreteCreator class?

>Sound like a good case for the Factory Pattern. The tricky part is returning the correct object. In this case I would consider using an interface class.
>
>All your classes would comply to this interface so all you have to do is instantiate it. Regardless of what class you create through the factory you will be able to call its method since it complies to the contract of the interface.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform