TdsTransactionContext Class
Provides context for a transaction manager request.
public sealed class TdsTransactionContextConstructors
| Name | Description |
|---|---|
| TdsTransactionContext() |
TdsTransactionContext()
TdsTransactionContext.cs- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public TdsTransactionContext()No documentation is available.
Properties
| Name | Description |
|---|---|
| IsConnectionClosing | Gets a value indicating whether the server ends the transaction because the client disconnected. The request type is then TdsTransactionRequestType.Rollback, and an error returned by the handler is ignored. |
| IsolationLevel | Gets the isolation level requested by TdsTransactionRequestType.Begin. |
| RemoteEndPoint | Gets the remote endpoint of the client. |
| RequestType | Gets the type of request. |
| SavepointName | Gets the name of the savepoint to create (TdsTransactionRequestType.Save) or to roll back to (TdsTransactionRequestType.Rollback). It is null when a rollback ends the whole transaction. |
| TransactionId | Gets the identifier of the transaction. For TdsTransactionRequestType.Begin, it is the identifier the transaction gets when the handler accepts the request. Queries running in the transaction report it in TdsQueryContext.TransactionId. |
| TransactionName | Gets the name of the transaction sent by the client, if any. |
| UserContext | Gets the authenticated user context associated with the connection. |
IsConnectionClosing
TdsTransactionContext.csGets a value indicating whether the server ends the transaction because the client disconnected. The request type is then TdsTransactionRequestType.Rollback, and an error returned by the handler is ignored.
public bool IsConnectionClosing { get; init; }Property value
IsolationLevel
TdsTransactionContext.csGets the isolation level requested by TdsTransactionRequestType.Begin.
public IsolationLevel IsolationLevel { get; init; }Property value
RemoteEndPoint
TdsTransactionContext.csRequestType
TdsTransactionContext.csGets the type of request.
public required TdsTransactionRequestType RequestType { get; init; }Property value
SavepointName
TdsTransactionContext.csGets the name of the savepoint to create (TdsTransactionRequestType.Save) or to roll back to (TdsTransactionRequestType.Rollback). It is null when a rollback ends the whole transaction.
public string? SavepointName { get; init; }Property value
TransactionId
TdsTransactionContext.csGets the identifier of the transaction. For TdsTransactionRequestType.Begin, it is the identifier the transaction gets when the handler accepts the request. Queries running in the transaction report it in TdsQueryContext.TransactionId.
public required long TransactionId { get; init; }Property value
TransactionName
TdsTransactionContext.csUserContext
TdsTransactionContext.csGets the authenticated user context associated with the connection.
public ClaimsPrincipal? UserContext { get; init; }