# IRehydrationContext

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
public interface IRehydrationContext
```

Contains the state of a grain activation which is in the process of being rehydrated after moving from another location.

## Properties

- [Keys](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.irehydrationcontext/properties/keys-afe6ca61/)

## Methods

- [TryGetBytes(string, ReadOnlySequence&lt;byte&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.irehydrationcontext/methods/trygetbytes-string-out-system-buffers-readonlysequence-byte-e895d322/)
- [TryGetValue(string, T?)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.irehydrationcontext/methods/trygetvalue-1-string-out-t-nullable-ddee708e/)
