IGrainManagementExtension 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供在 grain 激活中执行管理操作的功能。
public interface IGrainManagementExtension : Orleans.Runtime.IGrainExtension
type IGrainManagementExtension = interface
interface IGrainExtension
interface IAddressable
Public Interface IGrainManagementExtension
Implements IGrainExtension
- 实现
方法
DeactivateOnIdle() |
在当前实例变为空闲状态后停用该实例。 |
MigrateOnIdle() |
尝试在当前实例变为空闲状态后将其迁移到新位置。 |
扩展方法
AsReference(IAddressable, Type) |
返回对所提供的粒度的类型化引用。 |
AsReference<TGrainInterface>(IAddressable) |
返回对所提供的粒度的类型化引用。 |
BindGrainReference(IAddressable, IGrainFactory) |
将 grain 引用绑定到提供的 IGrainFactory。 |
Cast(IAddressable, Type) |
返回对所提供的粒度的类型化引用。 |
Cast<TGrainInterface>(IAddressable) |
返回对所提供的粒度的类型化引用。 |
GetGrainId(IAddressable) |
返回与提供的 grain 对应的粒度 ID。 |
GetPrimaryKey(IAddressable, String) |
返回 Guid grain 主键的表示形式。 |
GetPrimaryKey(IAddressable) |
返回 Guid grain 主键的表示形式。 |
GetPrimaryKeyLong(IAddressable, String) |
返回 |
GetPrimaryKeyLong(IAddressable) |
返回 |
GetPrimaryKeyString(IAddressable) |
返回 |
IsPrimaryKeyBasedOnLong(IAddressable) |
返回主键的一部分是否为 类型 |