S
Steve B.
Hi,
I'm building a component that perform some operation and that is working.
This component is runnig into the application app domain by now, but later,
this component will be a distributed component that will perform operations
which represent only a part of a whole process.
Since during this process errors can occurs, I suppose I have to enable the
component to participate into transactions.
What are the requirements of my component to act as a optionnally
transactionned component ?
I use to surround my code with using(TransactionScope ts = new
TransactionScope()){....} when I execute sql request. Will (or how) my
component be using the ambiant transaction ?
I hope someone can put on the way, or give me a sample and/or a pattern to
reach my goal.
Thanks in advance for any help.
Steve
I'm building a component that perform some operation and that is working.
This component is runnig into the application app domain by now, but later,
this component will be a distributed component that will perform operations
which represent only a part of a whole process.
Since during this process errors can occurs, I suppose I have to enable the
component to participate into transactions.
What are the requirements of my component to act as a optionnally
transactionned component ?
I use to surround my code with using(TransactionScope ts = new
TransactionScope()){....} when I execute sql request. Will (or how) my
component be using the ambiant transaction ?
I hope someone can put on the way, or give me a sample and/or a pattern to
reach my goal.
Thanks in advance for any help.
Steve