| Subject: Question about instancing and threading |
| Group: microsoft.public.windows.developer.winfx.indigo |
| Date: 1/21/2008 1:35:43 AM |
| From: eAlex79 [Email Address Protection] |
Hi! I am starting programming using WCF, I've come up with a list of service interfaces and started to implement them. Actually the program work as I expect it, as far as I can test that, but I have questions. To start the services I only use code, and at the moment we talk about P2P channels so I don't use a ServiceHost to create instances. Instead I start the channels 'by hand' as singleton services using a Binding/InstanceContext/EndpointAddress/ServiceEndpoint/DuplexChannelFactory. However, I did not yet understood how the things work together, if I set f.e. [ServiceBehavior(InstanceContextMode=... on the class implementing the channel, will this be set, or do I have set it explicitly? I want the services for p2p to be multithreaded singletons. If I have, I'd better remove the attributes yea? I tried figure out bymyself if the things are set, but I fail to find any corresponding properties if I look at the classes in the debugger, or they are null if I think they maybe the ones I search for... Any help appreciated :D Alex -- eAlex79 |
| Back |