TdsTransactionContext Class

Provides context for a transaction manager request.

public sealed class TdsTransactionContext

Constructors

NameDescription
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

NameDescription
IsConnectionClosingGets 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.
IsolationLevelGets the isolation level requested by TdsTransactionRequestType.Begin.
RemoteEndPointGets the remote endpoint of the client.
RequestTypeGets the type of request.
SavepointNameGets 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.
TransactionIdGets 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.
TransactionNameGets the name of the transaction sent by the client, if any.
UserContextGets the authenticated user context associated with the connection.

IsConnectionClosing

TdsTransactionContext.cs

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.

public bool IsConnectionClosing { get; init; }

Property value

bool

Gets the isolation level requested by TdsTransactionRequestType.Begin.

public IsolationLevel IsolationLevel { get; init; }

Property value

IsolationLevel

Gets the remote endpoint of the client.

public required EndPoint RemoteEndPoint { get; init; }

Property value

EndPoint

Gets the type of request.

public required TdsTransactionRequestType RequestType { get; init; }

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.

public string? SavepointName { get; init; }

Property value

string?

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.

public required long TransactionId { get; init; }

Property value

long

Gets the name of the transaction sent by the client, if any.

public string? TransactionName { get; init; }

Property value

string?

Gets the authenticated user context associated with the connection.

public ClaimsPrincipal? UserContext { get; init; }

Property value

ClaimsPrincipal?