共用方式為


LifecycleParticipantExtensions.ParticipateIn<TLifecycle> 方法

定義

符合撰寫以參與任何 ILifecycleObservable 以參與特定生命週期的元件。

public static Orleans.ILifecycleParticipant<TLifecycle> ParticipateIn<TLifecycle> (this Orleans.ILifecycleParticipant<Orleans.ILifecycleObservable> participant) where TLifecycle : Orleans.ILifecycleObservable;
static member ParticipateIn : Orleans.ILifecycleParticipant<Orleans.ILifecycleObservable> -> Orleans.ILifecycleParticipant<'Lifecycle (requires 'Lifecycle :> Orleans.ILifecycleObservable)> (requires 'Lifecycle :> Orleans.ILifecycleObservable)
<Extension()>
Public Function ParticipateIn(Of TLifecycle As ILifecycleObservable) (participant As ILifecycleParticipant(Of ILifecycleObservable)) As ILifecycleParticipant(Of TLifecycle)

類型參數

TLifecycle

目標生命週期觀察者類型。

參數

participant
ILifecycleParticipant<ILifecycleObservable>

生命週期參與者。

傳回

ILifecycleParticipant<TLifecycle>

包裝在 周圍 participant 實作 ILifecycleParticipant<TLifecycleObservable> 的配接器。

適用於