# JournalEntryScope

Package: [Microsoft.Orleans.Durable](/orleans/docs/api/csharp/microsoft.orleans.durable/) 10.0.0-alpha.1

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/JournalEntryScope.cs#L12)

```csharp
public struct JournalEntryScope : IDisposable
```

Represents the lexical write scope for one state journal entry.

## Remarks

Call [JournalEntryScope](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalentryscope/) after successfully writing the entry payload. If the scope is disposed before it is committed, the pending entry is aborted.

## Properties

- [Writer](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalentryscope/properties/writer-c7fec60c/)

## Methods

- [Commit](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalentryscope/methods/commit-19dd443b/)
- [Dispose](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalentryscope/methods/dispose-020dbb05/)
