IGrainRuntime 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public interface IGrainRuntime
type IGrainRuntime = interface
Public Interface IGrainRuntime
屬性
GrainFactory |
取得粒紋處理站。 |
ReminderRegistry | |
ServiceId |
提供此叢集執行身分的 ServiceId。 ServiceId 是特定服務的長時間存留識別碼值,即使服務在其作業生命週期期間啟動/重新部署多次,服務仍會維持不變。 |
ServiceProvider |
取得服務提供者。 |
SiloAddress |
取得與此實例相關聯的定址接收器位址。 |
SiloIdentity |
取得目前接收器的唯一識別碼。 此字串沒有語意內容,但對記錄可能很有用。 |
StreamProviderManager | |
TimerRegistry |
取得計時器登錄。 |
方法
DeactivateOnIdle(Grain) | |
DeactivateOnIdle(IGrainContext) |
在閒置時停用提供的細微性。 |
DelayDeactivation(Grain, TimeSpan) | |
DelayDeactivation(IGrainContext, TimeSpan) |
延遲閒置啟用收集所提供的細微性,因為非活動,直到至少經過指定的時間為止。 |
GetLogger(String) | |
GetStorage<TGrainState>(Grain) | |
GetStorage<TGrainState>(IGrainContext) |
取得所提供粒紋的細微性儲存體。 |
擴充方法
GetLogger(IGrainRuntime, String) |
IGrainRuntime 的擴充方法 GetLogger |