# IDurableLogCommandHandler&lt;T&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/)

## ApplyAppend(T) {#applyappend-t-99fca05b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/applyappend-t-99fca05b/)

```csharp
public abstract void ApplyAppend(T item)
```

Applies one appended item. An append command applies each of its items in order.

### Parameters

- `item` (`T`)

## ApplyClear {#applyclear-5867a7b5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/applyclear-5867a7b5/)

```csharp
public abstract void ApplyClear()
```

Applies a command which discards every entry and consumes one sequence number.

## ApplyDraftCommit(LogDraftCommit) {#applydraftcommit-orleans-durable-journaling-logdraftcommit-a4694ed3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/applydraftcommit-orleans-durable-journaling-logdraftcommit-a4694ed3/)

```csharp
public abstract void ApplyDraftCommit(LogDraftCommit commit)
```

Applies the outcome of a committed draft, whose entries have been applied.

### Parameters

- `commit` (`LogDraftCommit`)

## ApplySeal {#applyseal-a794ae23}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/applyseal-a794ae23/)

```csharp
public abstract void ApplySeal()
```

Applies a command which ends the log.

## ApplyTrimBefore(long) {#applytrimbefore-long-9e54f054}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/applytrimbefore-long-9e54f054/)

```csharp
public abstract void ApplyTrimBefore(long sequence)
```

Applies a command which discards entries before `sequence`.

### Parameters

- `sequence` (`long`)

## Reset(long, long, long, int) {#reset-long-long-long-int-826bef79}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.idurablelogcommandhandler-1/methods/reset-long-long-long-int-826bef79/)

```csharp
public abstract void Reset(long epoch, long firstSequence, long resetSequence, int capacityHint)
```

Resets the receiver to a snapshot's state before applying its entries, which begin at `firstSequence`.

### Parameters

- `epoch` (`long`): The identifier of the log's history, or zero when the log has no history.
- `firstSequence` (`long`): The sequence number of the first retained entry.
- `resetSequence` (`long`): The first sequence number after the most recent clear, or zero.
- `capacityHint` (`int`): The number of entries which follow.
