Edit

Share via


DefaultGrainActivator.DisposeInstance(IGrainContext, Object) Method

Definition

Disposes the provided grain instance which is associated with the provided grain context.

public System.Threading.Tasks.ValueTask DisposeInstance (Orleans.Runtime.IGrainContext context, object instance);
abstract member DisposeInstance : Orleans.Runtime.IGrainContext * obj -> System.Threading.Tasks.ValueTask
override this.DisposeInstance : Orleans.Runtime.IGrainContext * obj -> System.Threading.Tasks.ValueTask
Public Function DisposeInstance (context As IGrainContext, instance As Object) As ValueTask

Parameters

context
IGrainContext

The grain context.

instance
Object

The grain instance.

Returns

A ValueTask representing the work performed.

Implements

Applies to