共用方式為


IGrainManagementExtension 介面

定義

提供在細微啟用上執行管理作業的功能。

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)

將粒度參考系結至提供的 IGrainFactory

Cast(IAddressable, Type)

傳回所提供粒度的具型別參考。

Cast<TGrainInterface>(IAddressable)

傳回所提供粒度的具型別參考。

GetGrainId(IAddressable)

傳回對應至所提供粒紋的粒度標識碼。

GetPrimaryKey(IAddressable)

Guid 回粒度主鍵的表示法。

GetPrimaryKey(IAddressable, String)

Guid 回粒度主鍵的表示法。

GetPrimaryKeyLong(IAddressable)

long 回粒度主鍵的表示法。

GetPrimaryKeyLong(IAddressable, String)

long 回粒度主鍵的表示法。

GetPrimaryKeyString(IAddressable)

string 回粒度的主鍵。

IsPrimaryKeyBasedOnLong(IAddressable)

傳回主鍵的一部分是否為類型 long

適用於