المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : .NET Remoting...how to?



C# Programming
08-24-2009, 03:22 PM
Hi all
I've a class which gets all the customers from an SQL database and puts them in a class object "Customers"
I've managed to get those customers inside a remoting server application as a singleton object.
But my main problem is to get the client application connected to this server and make it possible to change the database but still keep the singleton object intact. It should create a new object on the server preferably on the same port (tcp) but get the customers from the other database.
The reason for this is that users will have te possibility to use multiple databases while connected to 1 server.
Maybe threading is an option?

please help me out

dipak