Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Question about instancing and threading

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 01-21-2008   #1 (permalink)
Just a german hobbyist


Join Date: Jan 2008
Vista Ultimate x64
Germany
 
Rep Power: 6
eAlex79 is on a distinguished road
  eAlex79 is offline

Question about instancing and threading

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

Alex

My System SpecsSystem Spec
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question on multi-threading Curious .NET General 5 03-17-2008 01:50 PM
Newbie question on multi-threading Curious .NET General 0 03-16-2008 10:11 PM
WPF: threading problem Griff .NET General 0 03-03-2008 07:29 AM
E-mail: threading Ildhund Live Mail 0 12-09-2007 12:04 PM
Threading in PowerShell Don Jones [MVP] PowerShell 2 12-28-2006 10:21 AM


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008