ImplicitStreamSubscriptionAttribute 类

定义

[Orleans.ImplicitStreamSubscription] 属性用于将 grain 标记为隐式流订阅。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public class ImplicitStreamSubscriptionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public class ImplicitStreamSubscriptionAttribute : Attribute, Orleans.Metadata.IGrainBindingsProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ImplicitStreamSubscriptionAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ImplicitStreamSubscriptionAttribute = class
    inherit Attribute
    interface IGrainBindingsProviderAttribute
Public Class ImplicitStreamSubscriptionAttribute
Inherits Attribute
Public Class ImplicitStreamSubscriptionAttribute
Inherits Attribute
Implements IGrainBindingsProviderAttribute
继承
ImplicitStreamSubscriptionAttribute
派生
属性
实现

构造函数

ImplicitStreamSubscriptionAttribute()

用于订阅所有流命名空间。

ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate)

允许传递流命名空间谓词的实例。 主要用作通过继承属性的扩展点。

ImplicitStreamSubscriptionAttribute(IStreamNamespacePredicate, String)

允许传递流命名空间谓词的实例。 主要用作通过继承属性的扩展点。

ImplicitStreamSubscriptionAttribute(String)

用于订阅指定的流命名空间。

ImplicitStreamSubscriptionAttribute(String, String)

用于订阅指定的流命名空间。

ImplicitStreamSubscriptionAttribute(Type)

允许传递任意谓词类型来筛选要订阅的流命名空间。 谓词类型必须具有不含参数的构造函数。

ImplicitStreamSubscriptionAttribute(Type, String)

允许传递任意谓词类型来筛选要订阅的流命名空间。 谓词类型必须具有不含参数的构造函数。

属性

Predicate

获取流命名空间筛选器谓词。

StreamIdMapper

获取流标识符映射器的名称。

方法

GetBindings(IServiceProvider, Type, GrainType)

获取此属性所附加到的类型的绑定。

适用于