# ILogViewAdaptor&lt;TLogView, TLogEntry&gt;

Package: [Microsoft.Orleans.EventSourcing](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.EventSourcing)

```csharp
public interface ILogViewAdaptor<TLogView, TLogEntry> : ILogConsistencyDiagnostics, ILogViewRead<TLogView, TLogEntry>, ILogViewUpdate<TLogEntry>
    where TLogView : new()
```

A log view adaptor is the storage interface for `Orleans.EventSourcing.LogConsistentGrain-1`, whose state is defined as a log view. 

There is one adaptor per grain, which is installed by [ILogViewAdaptorFactory](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptorfactory/) when the grain is activated.

## Type parameters

- `TLogEntry`: Type for the log entry
- `TLogView`: Type for the log view

## Methods

- [PostOnActivate](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptor-2/methods/postonactivate-d5873d4a/)
- [PostOnDeactivate](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptor-2/methods/postondeactivate-27c7ff4d/)
- [PreOnActivate](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptor-2/methods/preonactivate-1b12dd57/)
