Redigera

Dela via


TransactionAttribute Class

Definition

The TransactionAttribute attribute is used to mark methods that start and join transactions.

[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class TransactionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.TransactionRequest))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.TransactionRequest<>))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task), typeof(Orleans.TransactionTaskRequest))]
[Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task<>), typeof(Orleans.TransactionTaskRequest<>))]
[Orleans.InvokableCustomInitializer("SetTransactionOptions")]
public sealed class TransactionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type TransactionAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask), typeof(Orleans.TransactionRequest))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.ValueTask<>), typeof(Orleans.TransactionRequest<>))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task), typeof(Orleans.TransactionTaskRequest))>]
[<Orleans.InvokableBaseType(typeof(Orleans.Runtime.GrainReference), typeof(System.Threading.Tasks.Task<>), typeof(Orleans.TransactionTaskRequest<>))>]
[<Orleans.InvokableCustomInitializer("SetTransactionOptions")>]
type TransactionAttribute = class
    inherit Attribute
Public NotInheritable Class TransactionAttribute
Inherits Attribute
Inheritance
TransactionAttribute
Attributes

Constructors

TransactionAttribute(TransactionOption)
TransactionAttribute(TransactionOptionAlias)

Properties

ReadOnly
Requirement

Applies to