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