4
<name>Castle.Services.Transaction</name>
7
<member name="T:Castle.Services.Transaction.AbstractTransaction">
9
Helper abstract class for <see cref="T:Castle.Services.Transaction.ITransaction"/> implementors.
12
<member name="T:Castle.Services.Transaction.ITransaction">
14
Represents the contract for a transaction.
17
<member name="M:Castle.Services.Transaction.ITransaction.Begin">
19
Starts the transaction. Implementors
20
should activate the apropriate resources
21
in order to start the underlying transaction
24
<member name="M:Castle.Services.Transaction.ITransaction.Commit">
26
Succeed the transaction, persisting the
30
<member name="M:Castle.Services.Transaction.ITransaction.Rollback">
32
Cancels the transaction, rolling back the
36
<member name="M:Castle.Services.Transaction.ITransaction.SetRollbackOnly">
38
Signals that this transaction can only be rolledback.
39
This is used when the transaction is not being managed by
43
<member name="M:Castle.Services.Transaction.ITransaction.Enlist(Castle.Services.Transaction.IResource)">
45
Register a participant on the transaction.
47
<param name="resource"></param>
49
<member name="M:Castle.Services.Transaction.ITransaction.RegisterSynchronization(Castle.Services.Transaction.ISynchronization)">
51
Registers a synchronization object that will be
52
invoked prior and after the transaction completion
55
<param name="synchronization"></param>
57
<member name="P:Castle.Services.Transaction.ITransaction.Status">
59
Returns the current transaction status.
62
<member name="P:Castle.Services.Transaction.ITransaction.Context">
64
Transaction context. Can be used by applications.
67
<member name="M:Castle.Services.Transaction.Activity.#ctor">
69
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.Activity"/> class.
72
<member name="T:Castle.Services.Transaction.TransactionMode">
74
The supported transaction mode for the components.
77
<member name="F:Castle.Services.Transaction.TransactionMode.Unspecified">
82
<member name="F:Castle.Services.Transaction.TransactionMode.NotSupported">
84
transaction context will be created
85
managing internally a connection, no
86
transaction is opened though
89
<member name="F:Castle.Services.Transaction.TransactionMode.Requires">
91
transaction context will be created if not present
94
<member name="F:Castle.Services.Transaction.TransactionMode.RequiresNew">
96
a new transaction context will be created
99
<member name="F:Castle.Services.Transaction.TransactionMode.Supported">
101
An existing appropriate transaction context
102
will be joined if present, but if if there is no current
103
transaction on the thread, no transaction will be created.
106
<member name="T:Castle.Services.Transaction.IsolationMode">
108
The supported isolation modes.
111
<member name="T:Castle.Services.Transaction.TransactionalAttribute">
113
Indicates that the target class wants to use
114
the transactional services.
117
<member name="T:Castle.Services.Transaction.TransactionAttribute">
119
Indicates the transaction support for a method.
122
<member name="M:Castle.Services.Transaction.TransactionAttribute.#ctor">
124
Declares unspecified values for transaction and isolation, which
125
means that the transaction manager will use the default values
129
<member name="M:Castle.Services.Transaction.TransactionAttribute.#ctor(Castle.Services.Transaction.TransactionMode)">
131
Declares the transaction mode, but omits the isolation,
132
which means that the transaction manager should use the
133
default value for it.
135
<param name="transactionMode"></param>
137
<member name="M:Castle.Services.Transaction.TransactionAttribute.#ctor(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode)">
139
Declares both the transaction mode and isolation
140
desired for this method. The transaction manager should
141
obey the declaration.
143
<param name="transactionMode"></param>
144
<param name="isolationMode"></param>
146
<member name="P:Castle.Services.Transaction.TransactionAttribute.TransactionMode">
148
Returns the <see cref="P:Castle.Services.Transaction.TransactionAttribute.TransactionMode"/>
151
<member name="P:Castle.Services.Transaction.TransactionAttribute.IsolationMode">
153
Returns the <see cref="P:Castle.Services.Transaction.TransactionAttribute.IsolationMode"/>
156
<member name="P:Castle.Services.Transaction.TransactionAttribute.Distributed">
158
Gets or sets a value indicating whether the transaction should be distributed.
161
<c>true</c> if a distributed transaction should be created; otherwise, <c>false</c>.
164
<member name="T:Castle.Services.Transaction.IActivityManager">
166
Abstracts approaches to keep transaction activities
167
that may differ based on the environments.
170
<member name="P:Castle.Services.Transaction.IActivityManager.CurrentActivity">
172
Gets the current activity.
174
<value>The current activity.</value>
176
<member name="M:Castle.Services.Transaction.CallContextActivityManager.#ctor">
178
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.CallContextActivityManager"/> class.
181
<member name="M:Castle.Services.Transaction.CallContextActivityManager.InitializeLifetimeService">
183
Obtains a lifetime service object to control the lifetime policy for this instance.
187
An object of type <see cref="T:System.Runtime.Remoting.Lifetime.ILease"></see> used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the <see cref="P:System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime"></see> property.
190
<exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission. </exception><filterpriority>2</filterpriority><PermissionSet><IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="RemotingConfiguration, Infrastructure" /></PermissionSet>
192
<member name="P:Castle.Services.Transaction.CallContextActivityManager.CurrentActivity">
194
Gets the current activity.
196
<value>The current activity.</value>
198
<member name="M:Castle.Services.Transaction.TransactionException.#ctor(System.String)">
200
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.TransactionException"/> class.
202
<param name="message">The message.</param>
204
<member name="M:Castle.Services.Transaction.TransactionException.#ctor(System.String,System.Exception)">
206
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.TransactionException"/> class.
208
<param name="message">The message.</param>
209
<param name="innerException">The inner exception.</param>
211
<member name="M:Castle.Services.Transaction.TransactionException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
213
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.TransactionException"/> class.
215
<param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param>
216
<param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param>
217
<exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception>
218
<exception cref="T:System.ArgumentNullException">The info parameter is null. </exception>
220
<member name="T:Castle.Services.Transaction.DefaultTransactionManager">
222
TODO: Ensure this class is thread-safe
225
<member name="T:Castle.Services.Transaction.ITransactionManager">
227
Manages the creation and disposal of <see cref="T:Castle.Services.Transaction.ITransaction"/> instances.
230
<member name="M:Castle.Services.Transaction.ITransactionManager.CreateTransaction(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode)">
232
Creates a transaction.
234
<param name="transactionMode">The transaction mode.</param>
235
<param name="isolationMode">The isolation mode.</param>
238
<member name="M:Castle.Services.Transaction.ITransactionManager.CreateTransaction(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode,System.Boolean)">
240
Creates a transaction.
242
<param name="transactionMode">The transaction mode.</param>
243
<param name="isolationMode">The isolation mode.</param>
244
<param name="distributedTransaction">if set to <c>true</c>, the TM will create a distributed transaction.</param>
247
<member name="M:Castle.Services.Transaction.ITransactionManager.Dispose(Castle.Services.Transaction.ITransaction)">
249
Should guarantee the correct disposal of transaction
252
<param name="transaction"></param>
254
<member name="E:Castle.Services.Transaction.ITransactionManager.TransactionCreated">
256
Raised when a top level transaction was created
259
<member name="E:Castle.Services.Transaction.ITransactionManager.ChildTransactionCreated">
261
Raised when a child transaction was created
264
<member name="E:Castle.Services.Transaction.ITransactionManager.TransactionCommitted">
266
Raised when the transaction was committed successfully
269
<member name="E:Castle.Services.Transaction.ITransactionManager.TransactionRolledback">
271
Raised when the transaction was rolledback successfully
274
<member name="E:Castle.Services.Transaction.ITransactionManager.TransactionDisposed">
276
Raised when the transaction was disposed
279
<member name="E:Castle.Services.Transaction.ITransactionManager.TransactionFailed">
281
Raised when the transaction has failed on commit/rollback
284
<member name="P:Castle.Services.Transaction.ITransactionManager.CurrentTransaction">
286
Returns the current <see cref="T:Castle.Services.Transaction.ITransaction"/>.
287
The transaction manager will probably need to
288
hold the created transaction in the thread or in
289
some sort of context.
292
<member name="M:Castle.Services.Transaction.DefaultTransactionManager.#ctor">
294
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.DefaultTransactionManager"/> class.
297
<member name="M:Castle.Services.Transaction.DefaultTransactionManager.#ctor(Castle.Services.Transaction.IActivityManager)">
299
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.DefaultTransactionManager"/> class.
301
<param name="activityManager">The activity manager.</param>
303
<member name="M:Castle.Services.Transaction.DefaultTransactionManager.CreateTransaction(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode)">
305
Creates a transaction.
307
<param name="transactionMode">The transaction mode.</param>
308
<param name="isolationMode">The isolation mode.</param>
311
<member name="M:Castle.Services.Transaction.DefaultTransactionManager.CreateTransaction(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode,System.Boolean)">
313
Creates a transaction.
315
<param name="transactionMode">The transaction mode.</param>
316
<param name="isolationMode">The isolation mode.</param>
317
<param name="distributedTransaction">if set to <c>true</c>, the TM will create a distributed transaction.</param>
320
<member name="M:Castle.Services.Transaction.DefaultTransactionManager.InstantiateTransaction(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode,System.Boolean)">
322
Factory method for creating a transaction.
324
<param name="transactionMode">The transaction mode.</param>
325
<param name="isolationMode">The isolation mode.</param>
326
<param name="distributedTransaction">if set to <c>true</c>, the TM will create a distributed transaction.</param>
327
<returns>A transaction</returns>
329
<member name="P:Castle.Services.Transaction.DefaultTransactionManager.ActivityManager">
331
Gets or sets the activity manager.
333
<value>The activity manager.</value>
335
<member name="P:Castle.Services.Transaction.DefaultTransactionManager.Logger">
337
Gets or sets the logger.
339
<value>The logger.</value>
341
<member name="T:Castle.Services.Transaction.IResource">
343
Represents a contract for a resource that
344
can be enlisted within transactions.
347
<member name="M:Castle.Services.Transaction.IResource.Start">
349
Implementors should start the
350
transaction on the underlying resource
353
<member name="M:Castle.Services.Transaction.IResource.Commit">
355
Implementors should commit the
356
transaction on the underlying resource
359
<member name="M:Castle.Services.Transaction.IResource.Rollback">
361
Implementors should rollback the
362
transaction on the underlying resource
365
<member name="T:Castle.Services.Transaction.ISynchronization">
367
Depicts a synchronization contract.
369
Code can be executed before and after the
370
transaction completes
374
<member name="M:Castle.Services.Transaction.ISynchronization.BeforeCompletion">
376
Implementors may have code executing
377
just before the transaction completes
380
<member name="M:Castle.Services.Transaction.ISynchronization.AfterCompletion">
382
Implementors may have code executing
383
just after the transaction completes
386
<member name="T:Castle.Services.Transaction.TransactionStatus">
391
<member name="T:Castle.Services.Transaction.StandardTransaction">
393
Implements a transaction root.
396
<member name="T:Castle.Services.Transaction.ChildTransaction">
398
Emulates a standalone transaction but in fact it
399
just propages a transaction.
402
<member name="M:Castle.Services.Transaction.TLSActivityManager.InitializeLifetimeService">
404
Obtains a lifetime service object to control the lifetime policy for this instance.
408
An object of type <see cref="T:System.Runtime.Remoting.Lifetime.ILease"></see> used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the <see cref="P:System.Runtime.Remoting.Lifetime.LifetimeServices.LeaseManagerPollTime"></see> property.
411
<exception cref="T:System.Security.SecurityException">The immediate caller does not have infrastructure permission. </exception><filterpriority>2</filterpriority><PermissionSet><IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="RemotingConfiguration, Infrastructure" /></PermissionSet>
413
<member name="P:Castle.Services.Transaction.TLSActivityManager.CurrentActivity">
415
Gets the current activity.
417
<value>The current activity.</value>
419
<member name="M:Castle.Services.Transaction.TransactionScopeResourceAdapter.#ctor(Castle.Services.Transaction.TransactionMode,Castle.Services.Transaction.IsolationMode)">
421
Initializes a new instance of the <see cref="T:Castle.Services.Transaction.TransactionScopeResourceAdapter"/> class.
423
<param name="mode">The mode.</param>
424
<param name="isolationMode">The isolation mode.</param>
426
<member name="M:Castle.Services.Transaction.TransactionScopeResourceAdapter.Start">
428
Implementors should start the
429
transaction on the underlying resource
432
<member name="M:Castle.Services.Transaction.TransactionScopeResourceAdapter.Commit">
434
Implementors should commit the
435
transaction on the underlying resource
438
<member name="M:Castle.Services.Transaction.TransactionScopeResourceAdapter.Rollback">
440
Implementors should rollback the
441
transaction on the underlying resource