Skip to content

DefaultGrainActivator Methods

The default IGrainActivator implementation.

CreateInstance(IGrainContext)

View source
public 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)

View source
public 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.