# TimerEvent Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.diagnostics.graintimerevents.timerevent/)

## TimerEvent(IGrainContext, IGrainTimer) {#constructor-orleans-runtime-igraincontext-orleans-runtime-igraintimer-643ac593}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.diagnostics.graintimerevents.timerevent/constructors/constructor-orleans-runtime-igraincontext-orleans-runtime-igraintimer-643ac593/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Runtime/Diagnostics/GrainTimerEvents.cs#L31-L41)

```csharp
protected TimerEvent(IGrainContext grainContext, IGrainTimer timer)
```

The base class used for timer diagnostic events.

### Parameters

- `grainContext` (`IGrainContext`)
- `timer` (`IGrainTimer`)
