# LogConsistencyProvider Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.customstorage.logconsistencyprovider/)

## MakeLogViewAdaptor(ILogViewAdaptorHost&lt;TView, TEntry&gt;, TView, string, IGrainStorage, ILogConsistencyProtocolServices) {#makelogviewadaptor-2-orleans-eventsourcing-ilogviewadaptorhost-tview-tentry-tvie-a262048b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.customstorage.logconsistencyprovider/methods/makelogviewadaptor-2-orleans-eventsourcing-ilogviewadaptorhost-tview-tentry-tvie-a262048b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/CustomStorage/LogConsistencyProvider.cs#L40)

```csharp
public ILogViewAdaptor<TView, TEntry> MakeLogViewAdaptor<TView, TEntry>(ILogViewAdaptorHost<TView, TEntry> hostGrain, TView initialState, string grainTypeName, IGrainStorage grainStorage, ILogConsistencyProtocolServices services)
```

Constructs a `Orleans.EventSourcing.ILogViewAdaptor-2` to be installed in the given host grain.

### Parameters

- `hostGrain` (`ILogViewAdaptorHost<TView, TEntry>`): The grain that is hosting this adaptor
- `initialState` (`TView`): The initial state for this view
- `grainTypeName` (`string`): The type name of the grain
- `grainStorage` (`IGrainStorage`): Storage provider
- `services` (`ILogConsistencyProtocolServices`): Runtime services for multi-cluster coherence protocols
