# ILogViewAdaptorFactory Methods

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

## MakeLogViewAdaptor(ILogViewAdaptorHost&lt;TLogView, TLogEntry&gt;, TLogView, string, IGrainStorage, ILogConsistencyProtocolServices) {#makelogviewadaptor-2-orleans-eventsourcing-ilogviewadaptorhost-tlogview-tlogentr-6fcc2407}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.ilogviewadaptorfactory/methods/makelogviewadaptor-2-orleans-eventsourcing-ilogviewadaptorhost-tlogview-tlogentr-6fcc2407/)

```csharp
public abstract ILogViewAdaptor<TLogView, TLogEntry> MakeLogViewAdaptor<TLogView, TLogEntry>(ILogViewAdaptorHost<TLogView, TLogEntry> hostGrain, TLogView initialState, string grainTypeName, IGrainStorage grainStorage, ILogConsistencyProtocolServices services)
```

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

### Parameters

- `hostGrain` (`ILogViewAdaptorHost<TLogView, TLogEntry>`): The grain that is hosting this adaptor
- `initialState` (`TLogView`): 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
