# IDurableLogDraft&lt;T&gt;.Commit(ReadOnlySpan&lt;T&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/methods/)

```csharp
public abstract long Commit(params ReadOnlySpan<T> entries)
```

Closes the draft and appends the durable entries which replace its items.

### Parameters

- `entries` (`ReadOnlySpan<T>`): The entries, in order. Pass none to close the draft cleanly without appending entries.

### Returns

The sequence number of the first entry. When `entries` is empty, the sequence number which the next appended entry receives.

### Exceptions

- `System.InvalidOperationException`: The draft is closed. The message states why.
