public async Task <List <ActivationAddress> > Lookup(GrainId grainId) { if (!ClientGrainId.TryParse(grainId, out _)) { ThrowNotClientGrainId(grainId); } return(await _clientDirectory.Lookup(grainId)); }
public async ValueTask <GrainAddress> Lookup(GrainId grainId) { if (!ClientGrainId.TryParse(grainId, out var clientGrainId)) { ThrowNotClientGrainId(grainId); } var results = await _clientDirectory.Lookup(clientGrainId.GrainId); return(SelectAddress(results, grainId)); }