ServiceDomain.Enter and ServiceDomain.Leave in multi-threadedapplication. - 08-21-2009 , 10:20 AM
If I have two threads t1 and t2, and they use ServiceDomain.Enter and
ServiceDomain.Leave, will they potentially participate in the same
distributed transaction? Consider the following sequence of events:
t1: ServiceDomain.Leave // Which "ServiceDomain.Enter" does this
correspond to? t1 or t2?
The documentation says "Code that is enclosed between calls to Enter
and Leave runs in its own context and behaves as if it were a method
that is called on an object created within the context." So my
question is "Does 'Code that is enclosed between calls' refer to code
on the same thread, or code in the same executable?
Thanks in advance.
|Thread Tools||Search this Thread|