IStreamSubscriptionManager.AddSubscription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddSubscription(String, StreamId, GrainReference) |
Subscribes the specified grain to a stream. |
AddSubscription(String, IStreamIdentity, GrainReference) |
AddSubscription(String, StreamId, GrainReference)
Subscribes the specified grain to a stream.
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)
Parameters
- streamProviderName
- String
Name of the stream provider.
- streamId
- StreamId
The stream identifier.
- grainRef
- GrainReference
The grain reference.
Returns
The stream subscription.
Applies to
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)
Parameters
- streamProviderName
- String
- streamId
- IStreamIdentity
- grainRef
- GrainReference