Skip to content

IGrainActivator Methods

Creates a grain instance for a given grain context.

CreateInstance(IGrainContext)

abstract
public abstract object CreateInstance(IGrainContext context)
Returns a new grain instance for the provided grain context.

Parameters

contextIGrainContext
The grain context.

Returns

The grain instance.

DisposeInstance(IGrainContext, object)

abstract
public abstract ValueTask DisposeInstance(IGrainContext context, object instance)
Disposes the provided grain instance which is associated with the provided grain context.

Parameters

contextIGrainContext
The grain context.
instanceobject
The grain instance.

Returns

A System.Threading.Tasks.ValueTask representing the work performed.