# IDurableLogDraft&lt;T&gt;

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

```csharp
public interface IDurableLogDraft<T> : IDisposable
```

Streams volatile items to the readers of an `Orleans.Durable.Journaling.IDurableLog-1` which include drafts, until the draft commits durable entries or is abandoned.

## Remarks

The draft holds its items in memory only while it is open. Closing the draft releases them, so a reader which has not read every item when the draft closes receives the draft's outcome next and never receives the remaining items. The committed entries carry the draft's final content.

The draft closes when its owner commits, abandons, or disposes it, and when the log closes it because the log's journal was deleted or the log was sealed. Disposing an open draft abandons it. Use the draft in the owning activation's execution context and check `Orleans.Durable.Journaling.IDurableLogDraft-1.IsOpen` before committing a draft which the log may have closed.

## Type parameters

- `T`: The type of items and entries.

## Properties

- [Count](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/properties/count-7e8c4dad/)
- [Id](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/properties/id-f60e6748/)
- [IsOpen](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/properties/isopen-6ea514a9/)

## Methods

- [Abandon(string?)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/methods/abandon-string-nullable-844d7e7a/)
- [Commit(ReadOnlySpan&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/methods/commit-params-system-readonlyspan-t-cdf74f23/)
- [Write(T)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogdraft-1/methods/write-t-98b167c8/)
