IGrainMigrationParticipant Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |