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. 的引用

适用于