共用方式為


IGrainFactory.CreateObjectReference<TGrainObserverInterface> 方法

定義

建立所提供 obj 之 的參考。

public System.Threading.Tasks.Task<TGrainObserverInterface> CreateObjectReference<TGrainObserverInterface> (Orleans.IGrainObserver obj) where TGrainObserverInterface : Orleans.IGrainObserver;
public TGrainObserverInterface CreateObjectReference<TGrainObserverInterface> (Orleans.IGrainObserver obj) where TGrainObserverInterface : Orleans.IGrainObserver;
abstract member CreateObjectReference : Orleans.IGrainObserver -> System.Threading.Tasks.Task<'GrainObserverInterface (requires 'GrainObserverInterface :> Orleans.IGrainObserver)> (requires 'GrainObserverInterface :> Orleans.IGrainObserver)
abstract member CreateObjectReference : Orleans.IGrainObserver -> 'GrainObserverInterface (requires 'GrainObserverInterface :> Orleans.IGrainObserver)
Public Function CreateObjectReference(Of TGrainObserverInterface As IGrainObserver) (obj As IGrainObserver) As Task(Of TGrainObserverInterface)
Public Function CreateObjectReference(Of TGrainObserverInterface As IGrainObserver) (obj As IGrainObserver) As TGrainObserverInterface

類型參數

TGrainObserverInterface

的特定 IGrainObserver 型別 obj

參數

obj
IGrainObserver

要建立參考的物件。

傳回

Task<TGrainObserverInterface>
TGrainObserverInterface

obj 參考。

適用於