Skip to content

IDehydrationContext

interface

Namespace: Orleans.Runtime

Records the state of a grain activation which is in the process of being dehydrated for migration to another location.
public interface IDehydrationContext

Properties

  • Keys Gets the keys in the context.

Methods

  • AddBytes(string, ReadOnlySpan<byte>) Adds a sequence of bytes to the dehydration context, associating the sequence with the provided key.
  • AddBytes(string, Action<T, IBufferWriter<byte>>, T) Adds a sequence of bytes to the dehydration context, associating the sequence with the provided key.
  • TryAddValue(string, T?) Attempts to a value to the dehydration context, associated with the provided key, serializing it using Serializer. If a serializer is found for the value, and the key has not already been added, then the value is added and the method returns true. If no serializer exists or the key has already been added, then the value is not added and the method returns false.