示例#1
0
        public async Task <List <ActivationAddress> > Lookup(GrainId grainId)
        {
            if (!ClientGrainId.TryParse(grainId, out _))
            {
                ThrowNotClientGrainId(grainId);
            }

            return(await _clientDirectory.Lookup(grainId));
        }
示例#2
0
        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));
        }