# DurableStateWatchExtensions

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/Journaling/DurableStateWatchExtensions.cs#L18)

```csharp
public static class DurableStateWatchExtensions
```

Provides watch streams for durable values.

## Remarks

A watch stream begins with the current value once it is durable, then delivers the latest value after each journal write which changes it is acknowledged, so readers observe only durable state. The stream retains only the latest value. A value which nobody watches publishes nothing.

Enumerate the stream in the owning activation's execution context. The stream completes when the owning manager stops and faults when a failed journal operation stops the manager, since only a new activation can establish which changes are durable.

## Methods

- [WatchAsync(IDurableValue&lt;T&gt;, CancellationToken)](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.durablestatewatchextensions/methods/watchasync-1-this-orleans-durable-journaling-idurablevalue-t-system-threading-ca-7933d80c/)
