Skip to content

ImplicitChannelSubscriptionAttribute Constructors

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

ImplicitChannelSubscriptionAttribute(IChannelNamespacePredicate, string)

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

Parameters

predicateIChannelNamespacePredicate
The stream namespace predicate.
channelIdMapperstring
The name of the stream identity mapper.

ImplicitChannelSubscriptionAttribute(Type, string)

View source
public ImplicitChannelSubscriptionAttribute(Type predicateType, string channelIdMapper = 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.
channelIdMapperstring
The name of the stream identity mapper.

ImplicitChannelSubscriptionAttribute(string, string)

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

Parameters

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