# DurableSignal&lt;T&gt;

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable.Abstractions/DurableSignal.cs#L21)

```csharp
public sealed class DurableSignal<T>
```

Describes a named signal which carries a value of type `T` into a durable task, such as an external event or a human approval.

## Remarks

Senders and waiters share one descriptor, typically a static field: `static readonly DurableSignal<Shipment> Shipped = new("shipped");`. A signal addresses one task which a client or another grain invoked, and a wait anywhere in that task's execution observes the task's signals.

Each name latches one value per task: the host records the first value it receives, and every wait for that name returns the recorded value, including waits which begin before the signal arrives, waits which begin after it, and waits during replay. A repeated signal with an equal value leaves the task unchanged, and one with a different value is rejected. Use `Orleans.Durable.Tasks.DurableSignal-1.For(System.String)` to derive a distinct name for each occurrence of a repeated event.

## Type parameters

- `T`: The type of the signal's value.

## Constructors

- [DurableSignal&lt;T&gt;(string)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/constructors/constructor-string-5a7673e1/)

## Properties

- [Name](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/properties/name-5d557a35/)

## Methods

- [For(string)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/methods/for-string-5a25491c/)
- [ToString](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/methods/tostring-2d0d9b11/)
- [TryWaitAsync(DateTimeOffset)](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/methods/trywaitasync-system-datetimeoffset-4aa5200f/)
- [WaitAsync](/orleans/docs/api/csharp/microsoft.orleans.durable.abstractions/orleans.durable.tasks.durablesignal-1/methods/waitasync-2dbf9d75/)
