# ILogViewUpdate&lt;TLogEntry&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/)

## ClearLogAsync(CancellationToken) {#clearlogasync-system-threading-cancellationtoken-e2f95b23}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/clearlogasync-system-threading-cancellationtoken-e2f95b23/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/LogConsistency/ILogViewAdaptor.cs#L126)

```csharp
public virtual Task ClearLogAsync(CancellationToken cancellationToken)
```

Clear the log stream completely. Throws `System.NotSupportedException` if the log stream does not support clearing.

### Parameters

- `cancellationToken` (`CancellationToken`): A cancellation token to cancel the operation.

### Returns

A task that represents the asynchronous clear operation.

## ConfirmSubmittedEntries {#confirmsubmittedentries-67427a1c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/confirmsubmittedentries-67427a1c/)

```csharp
public abstract Task ConfirmSubmittedEntries()
```

Confirm all submitted entries. 

Waits until all previously submitted entries appear in the confirmed prefix of the log.

### Returns

A task that completes after all entries are confirmed.

## Submit(TLogEntry) {#submit-tlogentry-e009a4aa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/submit-tlogentry-e009a4aa/)

```csharp
public abstract void Submit(TLogEntry entry)
```

Submit a single log entry to be appended to the global log, either at the current or at any later position.

### Parameters

- `entry` (`TLogEntry`)

## SubmitRange(IEnumerable&lt;TLogEntry&gt;) {#submitrange-system-collections-generic-ienumerable-tlogentry-8894b5f8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/submitrange-system-collections-generic-ienumerable-tlogentry-8894b5f8/)

```csharp
public abstract void SubmitRange(IEnumerable<TLogEntry> entries)
```

Submit a range of log entries to be appended atomically to the global log, either at the current or at any later position.

### Parameters

- `entries` (`IEnumerable<TLogEntry>`)

## Synchronize {#synchronize-f789bf35}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/synchronize-f789bf35/)

```csharp
public abstract Task Synchronize()
```

Get the latest log view and confirm all submitted entries. 

Waits until all previously submitted entries appear in the confirmed prefix of the log, and forces a refresh of the confirmed prefix.

### Returns

A task that completes after getting the latest version and confirming all entries.

## TryAppend(TLogEntry) {#tryappend-tlogentry-1d37aa68}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/tryappend-tlogentry-1d37aa68/)

```csharp
public abstract Task<bool> TryAppend(TLogEntry entry)
```

Try to append a single log entry at the current position of the log.

### Parameters

- `entry` (`TLogEntry`)

### Returns

true if the entry was appended successfully, or false if there was a concurrency conflict (i.e. some other entries were previously appended).

## TryAppendRange(IEnumerable&lt;TLogEntry&gt;) {#tryappendrange-system-collections-generic-ienumerable-tlogentry-8c1b53c6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewupdate-1/methods/tryappendrange-system-collections-generic-ienumerable-tlogentry-8c1b53c6/)

```csharp
public abstract Task<bool> TryAppendRange(IEnumerable<TLogEntry> entries)
```

Try to append a range of log entries atomically at the current position of the log.

### Parameters

- `entries` (`IEnumerable<TLogEntry>`)

### Returns

true if the entries were appended successfully, or false if there was a concurrency conflict (i.e. some other entries were previously appended).
