IGrainLocator.TryLookupInCache(GrainId, GrainAddress) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试在本地查找缓存中查找提供的 grain ID 的 grain 地址。
public bool TryLookupInCache(Orleans.Runtime.GrainId grainId, out Orleans.Runtime.GrainAddress? address);
abstract member TryLookupInCache : Orleans.Runtime.GrainId * GrainAddress -> bool
Public Function TryLookupInCache (grainId As GrainId, ByRef address As GrainAddress) As Boolean
参数
- grainId
- GrainId
要查找的粒度 ID。
- address
- GrainAddress
如果找到,则为生成的粒度地址;如果未找到, null
则为 。
返回
一个值,该值指示是否找到有效的条目。