File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change 38
38
## Examples
39
39
The following example demonstrates how this type is used.
40
40
41
- `//Transaction completed event handler`
42
-
43
- `static void Current_TransactionCompleted(object sender, TransactionEventArgs e)`
44
-
45
- `{`
46
-
47
- `Console.WriteLine("A transaction has completed:");`
48
-
49
- `Console.WriteLine("ID:{0}", e.Transaction.TransactionInformation.LocalIdentifier);`
50
-
51
- `Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);`
52
-
53
- `Console.WriteLine("Status: {0}", e.Transaction.TransactionInformation.Status);`
54
-
55
- `Console.WriteLine("IsolationLevel: {0}", e.Transaction.IsolationLevel);`
56
-
57
- `}`
41
+ ```cs
42
+ //Transaction completed event handler
43
+ static void Current_TransactionCompleted(object sender, TransactionEventArgs e)
44
+ {
58
45
46
+ Console.WriteLine("A transaction has completed:");
47
+ Console.WriteLine("ID:{0}", e.Transaction.TransactionInformation.LocalIdentifier);
48
+ Console.WriteLine("Distributed ID: {0}", e.Transaction.TransactionInformation.DistributedIdentifier);
49
+ Console.WriteLine("Status: {0}", e.Transaction.TransactionInformation.Status);
50
+ Console.WriteLine("IsolationLevel: {0}", e.Transaction.IsolationLevel);
51
+ }
52
+ ```
59
53
]]> </format >
60
54
</remarks >
61
55
</Docs >
You can’t perform that action at this time.
0 commit comments