StatelessWorkerAttribute 类

定义

StatelessWorker 属性用于标记 grain 类,其中不期望在请求之间保留 grain 状态,并且运行时允许创建同一粒度的多次激活。

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StatelessWorkerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StatelessWorkerAttribute : Orleans.Placement.PlacementAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit PlacementAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit PlacementAttribute
    interface IGrainPropertiesProviderAttribute
Public NotInheritable Class StatelessWorkerAttribute
Inherits Attribute
Public NotInheritable Class StatelessWorkerAttribute
Inherits PlacementAttribute
继承
StatelessWorkerAttribute
继承
StatelessWorkerAttribute
属性
实现

构造函数

StatelessWorkerAttribute()

初始化 StatelessWorkerAttribute 类的新实例。

StatelessWorkerAttribute(Int32)

初始化 StatelessWorkerAttribute 类的新实例。

属性

MaxLocalWorkers

单个接收器中本地 StatelessWorker 的最大数量。

PlacementStrategy

StatelessWorker 属性用于标记 grain 类,其中不期望在请求之间保留 grain 状态,并且运行时允许创建同一粒度的多次激活。

(继承自 PlacementAttribute)

方法

Populate(IServiceProvider, Type, GrainType, Dictionary<String,String>)

将 grain 属性添加到 properties

Populate(IServiceProvider, Type, GrainType, Dictionary<String,String>)

将 grain 属性添加到 properties

(继承自 PlacementAttribute)

适用于