Forum Post: RE: Singleton vs Static

  • Thread starter Thread starter Marian Edu
  • Start date Start date
Status
Not open for further replies.
M

Marian Edu

Guest
Passing a singleton will give you a new instance on the client each time so there will only be one instance of it on the server (well one on each agent)... on the client you'll have a bunch of those unless you only ask for it once but I doubt singleton pattern will enforce only one instance on the client. This is only a creational pattern while when passing objects around those are serialized and de-serialized back, will be interesting to find out what progress is going to do though.

Continue reading...
 
Status
Not open for further replies.
Back
Top