# IStateMachine.WriteSnapshot(JournalStreamWriter)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.istatemachine/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.journaling/orleans.journaling.istatemachine/methods/)

```csharp
public abstract void WriteSnapshot(JournalStreamWriter writer)
```

Writes a snapshot of the state to the provided writer.

### Parameters

- `writer` (`JournalStreamWriter`): The journal stream writer.
