# DeactivationReasonCode

Package: [Microsoft.Orleans.Core.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core.Abstractions)

```csharp
[Orleans.GenerateSerializer]
public enum DeactivationReasonCode
```

An informational reason code for deactivation.

## Fields

- `None` = `0` - No reason provided.
- `ShuttingDown` = `1` - The process is currently shutting down.
- `ActivationFailed` = `2` - Activation of the grain failed.
- `DirectoryFailure` = `3` - This activation is affected by an internal failure in the distributed grain directory.
- `ActivationIdle` = `4` - This activation is idle.
- `ActivationUnresponsive` = `5` - This activation is unresponsive to commands or requests.
- `DuplicateActivation` = `6` - Another instance of this grain has been activated.
- `IncompatibleRequest` = `7` - This activation received a request which cannot be handled by the locally running process.
- `ApplicationError` = `8` - An application error occurred.
- `ApplicationRequested` = `9` - The application requested to deactivate this activation.
- `Migrating` = `10` - This activation is migrating to a new location.
- `RuntimeRequested` = `11` - The runtime requested to deactivate this activation.
- `HighMemoryPressure` = `12` - Runtime detected that app is running on low memory, and forcefully decided to deactivate.
