Skip to content

ImplicitStreamSubscriptionAttribute Constructors

The [Orleans.ImplicitStreamSubscription] attribute is used to mark grains as implicit stream subscriptions.

ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate, string)

View source
public ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate predicate, string streamIdMapper = null)
Allows to pass an instance of the stream namespace predicate. To be used mainly as an extensibility point via inheriting attributes.

Parameters

predicateIStreamNamespacePredicate
The stream namespace predicate.
streamIdMapperstring
The name of the stream identity mapper.

ImplicitStreamSubscriptionAttribute(Type, string)

View source
public ImplicitStreamSubscriptionAttribute(Type predicateType, string streamIdMapper = null)
Allows to pass an arbitrary predicate type to filter stream namespaces to subscribe. The predicate type must have a constructor without parameters.

Parameters

predicateTypeType
The stream namespace predicate type.
streamIdMapperstring
The name of the stream identity mapper.

ImplicitStreamSubscriptionAttribute(string, string)

View source
public ImplicitStreamSubscriptionAttribute(string streamNamespace, string streamIdMapper = null)
Used to subscribe to the specified stream namespace.

Parameters

streamNamespacestring
The stream namespace to subscribe.
streamIdMapperstring
The name of the stream identity mapper.