M
Mohd Ebrahim
1. Singleton types never have more than one instance at any one time. If an
instance exists, all client requests are serviced by that instance. If an
instance does not exist, the server creates an instance and all subsequent
client requests will be serviced by that instance. Because Singleton types
have an associated default lifetime, clients will not always receive a
reference to the same instance of the remotable class, even though there is
never more than one instance available at any one time.
2. In the above scenerio what If i just use a static class (non -instance
class) will this not server me purpose mentioned in the above statment
what is the difference between 1 & 2 ?
Thanks
instance exists, all client requests are serviced by that instance. If an
instance does not exist, the server creates an instance and all subsequent
client requests will be serviced by that instance. Because Singleton types
have an associated default lifetime, clients will not always receive a
reference to the same instance of the remotable class, even though there is
never more than one instance available at any one time.
2. In the above scenerio what If i just use a static class (non -instance
class) will this not server me purpose mentioned in the above statment
what is the difference between 1 & 2 ?
Thanks