# PrimaryBasedLogViewAdaptor&lt;TLogView, TLogEntry, TSubmissionEntry&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.common.primarybasedlogviewadaptor-3/)

## PrimaryBasedLogViewAdaptor&lt;TLogView, TLogEntry, TSubmissionEntry&gt;(ILogViewAdaptorHost&lt;TLogView, TLogEntry&gt;, TLogView, ILogConsistencyProtocolServices) {#constructor-orleans-eventsourcing-ilogviewadaptorhost-tlogview-tlogentry-tlogvie-8fbdec50}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.eventsourcing/orleans.eventsourcing.common.primarybasedlogviewadaptor-3/constructors/constructor-orleans-eventsourcing-ilogviewadaptorhost-tlogview-tlogentry-tlogvie-8fbdec50/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.EventSourcing/Common/PrimaryBasedLogViewAdaptor.cs#L182-L238)

```csharp
protected PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, PrimaryBasedLogViewAdaptor(ILogViewAdaptorHost<TLogView, TLogEntry> host, TLogView initialstate, ILogConsistencyProtocolServices services)
```

Construct an instance, for the given parameters.

### Parameters

- `host` (`ILogViewAdaptorHost<TLogView, TLogEntry>`)
- `initialstate` (`TLogView`)
- `services` (`ILogConsistencyProtocolServices`)
