StatelessWorkerAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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(Int32) |
初始化 StatelessWorkerAttribute 类的新实例。 |
属性
MaxLocalWorkers |
单个接收器中本地 StatelessWorker 的最大数量。 |
PlacementStrategy |
StatelessWorker 属性用于标记 grain 类,其中不期望在请求之间保留 grain 状态,并且运行时允许创建同一粒度的多次激活。 (继承自 PlacementAttribute) |
方法
Populate(IServiceProvider, Type, GrainType, Dictionary<String,String>) |
将 grain 属性添加到 |
Populate(IServiceProvider, Type, GrainType, Dictionary<String,String>) |
将 grain 属性添加到 |