# JournalEntryScope

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

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Journaling) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.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.journaling/orleans.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.journaling/orleans.journaling.journalentryscope/properties/writer-c7fec60c/)

## Methods

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