IGrainLocator.TryLookupInCache(GrainId, GrainAddress) 方法

定义

尝试在本地查找缓存中查找提供的 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 则为 。

返回

一个值,该值指示是否找到有效的条目。

适用于