Skip to content

IGrainMigrationParticipant Methods

OnDehydrate(IDehydrationContext)

abstract
public abstract void OnDehydrate(IDehydrationContext dehydrationContext)
Called on the original activation when migration is initiated, after IGrainBase completes. The participant can access and update the dehydration context.

Parameters

dehydrationContextIDehydrationContext
The dehydration context.

OnRehydrate(IRehydrationContext)

abstract
public abstract void OnRehydrate(IRehydrationContext rehydrationContext)
Called on the new activation after a migration, before IGrainBase is called. The participant can restore state from the migration context.

Parameters

rehydrationContextIRehydrationContext
The rehydration context.