IGrainLocator.Lookup(GrainId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.