# TransactionalState&lt;TState&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionalstate-1/)

## TransactionalState&lt;TState&gt;(TransactionalStateConfiguration, IGrainContextAccessor, ITransactionDataCopier&lt;TState&gt;, IGrainRuntime, ILogger&lt;TransactionalState&lt;TState&gt;&gt;) {#constructor-orleans-transactions-abstractions-transactionalstateconfiguration-or-00e7905b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionalstate-1/constructors/constructor-orleans-transactions-abstractions-transactionalstateconfiguration-or-00e7905b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/State/TransactionalState.cs#L37-L52)

```csharp
public TransactionalState(TransactionalStateConfiguration transactionalStateConfiguration, IGrainContextAccessor contextAccessor, ITransactionDataCopier<TState> copier, IGrainRuntime grainRuntime, ILogger<TransactionalState<TState>> logger)
```

### Parameters

- `transactionalStateConfiguration` (`TransactionalStateConfiguration`)
- `contextAccessor` (`IGrainContextAccessor`)
- `copier` (`ITransactionDataCopier<TState>`)
- `grainRuntime` (`IGrainRuntime`)
- `logger` (`ILogger<TransactionalState<TState>>`)
