AddSubscription(IStreamSubscriptionManager, IGrainFactory, StreamId, string, GrainId)
staticextension
public static Task<StreamSubscription> AddSubscription<TGrainInterface>(this IStreamSubscriptionManager manager, IGrainFactory grainFactory, StreamId streamId, string streamProviderName, GrainId grainId) Subscribes the specified grain to the specified stream.
Parameters
managerIStreamSubscriptionManager- The manager.
grainFactoryIGrainFactory- The grain factory.
streamIdStreamId- The stream identifier.
streamProviderNamestring- Name of the stream provider.
grainIdGrainId- The grain to subscribe.
Returns
The newly added subscription.
