Class ImplicitStreamSubscriptionAttribute
The [Orleans.ImplicitStreamSubscription] attribute is used to mark grains as implicit stream subscriptions.
Inheritance
System.Object
ImplicitStreamSubscriptionAttribute
Namespace: Orleans
Assembly: Orleans.Core.Abstractions.dll
Syntax
public class ImplicitStreamSubscriptionAttribute : Attribute
Constructors
| Improve this Doc View SourceImplicitStreamSubscriptionAttribute()
Used to subscribe to all stream namespaces.
Declaration
public ImplicitStreamSubscriptionAttribute()
ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate)
Allows to pass an instance of the stream namespace predicate. To be used mainly as an extensibility point via inheriting attributes.
Declaration
public ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate predicate)
Parameters
Type | Name | Description |
---|---|---|
IStreamNamespacePredicate | predicate | The stream namespace predicate. |
ImplicitStreamSubscriptionAttribute(String)
Used to subscribe to the specified stream namespace.
Declaration
public ImplicitStreamSubscriptionAttribute(string streamNamespace)
Parameters
Type | Name | Description |
---|---|---|
System.String | streamNamespace | The stream namespace to subscribe. |
ImplicitStreamSubscriptionAttribute(Type)
Allows to pass an arbitrary predicate type to filter stream namespaces to subscribe. The predicate type must have a constructor without parameters.
Declaration
public ImplicitStreamSubscriptionAttribute(Type predicateType)
Parameters
Type | Name | Description |
---|---|---|
Type | predicateType | The stream namespace predicate type. |
Properties
| Improve this Doc View SourcePredicate
Gets the stream namespace filter predicate.
Declaration
public IStreamNamespacePredicate Predicate { get; }
Property Value
Type | Description |
---|---|
IStreamNamespacePredicate |