IStreamSubscriptionManager.AddSubscription 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddSubscription(String, StreamId, GrainReference) |
將指定的粒紋訂閱至資料流程。 |
AddSubscription(String, IStreamIdentity, GrainReference) |
AddSubscription(String, StreamId, GrainReference)
將指定的粒紋訂閱至資料流程。
public System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription (string streamProviderName, Orleans.Runtime.StreamId streamId, Orleans.Runtime.GrainReference grainRef);
abstract member AddSubscription : string * Orleans.Runtime.StreamId * Orleans.Runtime.GrainReference -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription>
Public Function AddSubscription (streamProviderName As String, streamId As StreamId, grainRef As GrainReference) As Task(Of StreamSubscription)
參數
- streamProviderName
- String
資料流程提供者的名稱。
- streamId
- StreamId
資料流識別碼。
- grainRef
- GrainReference
粒紋參考。
傳回
資料流程訂閱。
適用於
AddSubscription(String, IStreamIdentity, GrainReference)
public System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription> AddSubscription (string streamProviderName, Orleans.Streams.IStreamIdentity streamId, Orleans.Runtime.GrainReference grainRef);
abstract member AddSubscription : string * Orleans.Streams.IStreamIdentity * Orleans.Runtime.GrainReference -> System.Threading.Tasks.Task<Orleans.Streams.Core.StreamSubscription>
Public Function AddSubscription (streamProviderName As String, streamId As IStreamIdentity, grainRef As GrainReference) As Task(Of StreamSubscription)
參數
- streamProviderName
- String
- streamId
- IStreamIdentity
- grainRef
- GrainReference