Redigera

Dela via


IGrainMigrationParticipant Interface

Definition

public interface IGrainMigrationParticipant
type IGrainMigrationParticipant = interface
Public Interface IGrainMigrationParticipant
Derived

Methods

OnDehydrate(IDehydrationContext)

Called on the original activation when migration is initiated, after OnDeactivateAsync(DeactivationReason, CancellationToken) completes. The participant can access and update the dehydration context.

OnRehydrate(IRehydrationContext)

Called on the new activation after a migration, before OnActivateAsync(CancellationToken) is called. The participant can restore state from the migration context.

Applies to