# DurableTaskEvents

Package: [Microsoft.Orleans.Durable](/orleans/docs/api/csharp/microsoft.orleans.durable/) 10.0.0-alpha.1

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableTasks/Diagnostics/DurableTaskEvents.cs#L24)

```csharp
public static class DurableTaskEvents
```

Provides the diagnostic listener and event payload types for the durable task runtime of grains.

## Remarks

These types are public but may change between minor versions. They are intended for advanced scenarios such as simulation testing and diagnostics.

Each event is written synchronously on the activation whose runtime makes the transition, when it stages the transition, so an observer sees the runtime's state at that point; the change commits with the grain's next journal write. An exception thrown by an observer propagates to the runtime operation which raised the event.

## Properties

- [AllEvents](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents/properties/allevents-00c3ac9b/)

## Fields

- [ListenerName](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.tasks.diagnostics.durabletaskevents/fields/listenername-c6fe01a0/)
