Compartilhar via


TransactionAttribute Classe

Definição

O atributo TransactionAttribute é usado para marcar métodos que iniciam e ingressam transações.

[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
Herança
TransactionAttribute
Atributos

Construtores

TransactionAttribute(TransactionOption)

O atributo TransactionAttribute é usado para marcar métodos que iniciam e ingressam transações.

TransactionAttribute(TransactionOptionAlias)

O atributo TransactionAttribute é usado para marcar métodos que iniciam e ingressam transações.

Propriedades

ReadOnly

O atributo TransactionAttribute é usado para marcar métodos que iniciam e ingressam transações.

Requirement

O atributo TransactionAttribute é usado para marcar métodos que iniciam e ingressam transações.

Aplica-se a