TransactionalState<TState> 构造函数

定义

重载

TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)
TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILoggerFactory)
TransactionalState<TState>(TransactionalStateConfiguration, IGrainContextAccessor, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)

TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)

Source:
TransactionalState.cs
public TransactionalState (Orleans.Transactions.Abstractions.TransactionalStateConfiguration transactionalStateConfiguration, Orleans.Runtime.IGrainActivationContext context, Orleans.Transactions.Abstractions.ITransactionDataCopier<TState> copier, Orleans.Runtime.IGrainRuntime grainRuntime, Microsoft.Extensions.Logging.ILogger<Orleans.Transactions.TransactionalState<TState>> logger);
new Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> : Orleans.Transactions.Abstractions.TransactionalStateConfiguration * Orleans.Runtime.IGrainActivationContext * Orleans.Transactions.Abstractions.ITransactionDataCopier<'State (requires 'State : null and 'State : (new : unit -> 'State))> * Orleans.Runtime.IGrainRuntime * Microsoft.Extensions.Logging.ILogger<Orleans.Transactions.TransactionalState<'State>> -> Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))>
Public Sub New (transactionalStateConfiguration As TransactionalStateConfiguration, context As IGrainActivationContext, copier As ITransactionDataCopier(Of TState), grainRuntime As IGrainRuntime, logger As ILogger(Of TransactionalState(Of TState)))

参数

transactionalStateConfiguration
TransactionalStateConfiguration
copier
ITransactionDataCopier<TState>
grainRuntime
IGrainRuntime
logger
ILogger<TransactionalState<TState>>

适用于

TransactionalState<TState>(TransactionalStateConfiguration, IGrainActivationContext, ITransactionDataCopier<TState>, IGrainRuntime, ILoggerFactory)

public TransactionalState (Orleans.Transactions.Abstractions.TransactionalStateConfiguration transactionalStateConfiguration, Orleans.Runtime.IGrainActivationContext context, Orleans.Transactions.Abstractions.ITransactionDataCopier<TState> copier, Orleans.Runtime.IGrainRuntime grainRuntime, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> : Orleans.Transactions.Abstractions.TransactionalStateConfiguration * Orleans.Runtime.IGrainActivationContext * Orleans.Transactions.Abstractions.ITransactionDataCopier<'State (requires 'State : null and 'State : (new : unit -> 'State))> * Orleans.Runtime.IGrainRuntime * Microsoft.Extensions.Logging.ILoggerFactory -> Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))>
Public Sub New (transactionalStateConfiguration As TransactionalStateConfiguration, context As IGrainActivationContext, copier As ITransactionDataCopier(Of TState), grainRuntime As IGrainRuntime, loggerFactory As ILoggerFactory)

参数

transactionalStateConfiguration
TransactionalStateConfiguration
copier
ITransactionDataCopier<TState>
grainRuntime
IGrainRuntime
loggerFactory
ILoggerFactory

适用于

TransactionalState<TState>(TransactionalStateConfiguration, IGrainContextAccessor, ITransactionDataCopier<TState>, IGrainRuntime, ILogger<TransactionalState<TState>>)

public TransactionalState (Orleans.Transactions.Abstractions.TransactionalStateConfiguration transactionalStateConfiguration, Orleans.Runtime.IGrainContextAccessor contextAccessor, Orleans.Transactions.Abstractions.ITransactionDataCopier<TState> copier, Orleans.Runtime.IGrainRuntime grainRuntime, Microsoft.Extensions.Logging.ILogger<Orleans.Transactions.TransactionalState<TState>> logger);
new Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))> : Orleans.Transactions.Abstractions.TransactionalStateConfiguration * Orleans.Runtime.IGrainContextAccessor * Orleans.Transactions.Abstractions.ITransactionDataCopier<'State (requires 'State : null and 'State : (new : unit -> 'State))> * Orleans.Runtime.IGrainRuntime * Microsoft.Extensions.Logging.ILogger<Orleans.Transactions.TransactionalState<'State>> -> Orleans.Transactions.TransactionalState<'State (requires 'State : null and 'State : (new : unit -> 'State))>
Public Sub New (transactionalStateConfiguration As TransactionalStateConfiguration, contextAccessor As IGrainContextAccessor, copier As ITransactionDataCopier(Of TState), grainRuntime As IGrainRuntime, logger As ILogger(Of TransactionalState(Of TState)))

参数

transactionalStateConfiguration
TransactionalStateConfiguration
contextAccessor
IGrainContextAccessor
copier
ITransactionDataCopier<TState>
grainRuntime
IGrainRuntime
logger
ILogger<TransactionalState<TState>>

适用于