Redigera

Dela via


IGrainLocator.Lookup(GrainId) Method

Definition

Finds the corresponding address for a grain.

public System.Threading.Tasks.ValueTask<Orleans.Runtime.GrainAddress?> Lookup (Orleans.Runtime.GrainId grainId);
abstract member Lookup : Orleans.Runtime.GrainId -> System.Threading.Tasks.ValueTask<Orleans.Runtime.GrainAddress>
Public Function Lookup (grainId As GrainId) As ValueTask(Of GrainAddress)

Parameters

grainId
GrainId

The grain id.

Returns

The address corresponding to the specified grain id, or null if the grain is not currently registered.

Applies to