# PrimaryBasedLogViewAdaptor&lt;TLogView, TLogEntry, TSubmissionEntry&gt;.PreOnActivate

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.EventSourcing/Common/PrimaryBasedLogViewAdaptor.cs#L198-L206)

```csharp
public virtual Task PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, PreOnActivate()
```

Called during activation, right before the user-defined [Grain](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.grain/).
