共用方式為


StatelessWorkerAttribute 類別

定義

StatelessWorker 屬性是用來標記粒紋類別,在此類別中,要求之間不會預期會保留粒紋狀態,以及執行時間允許建立相同粒紋的多個啟用。

[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

單一定址接收器中本機 StatelessWorkers 的最大數目。

PlacementStrategy

StatelessWorker 屬性是用來標記粒紋類別,在此類別中,要求之間不會預期會保留粒紋狀態,以及執行時間允許建立相同粒紋的多個啟用。

(繼承來源 PlacementAttribute)

方法

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

將粒紋屬性新增至 properties

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

將粒紋屬性新增至 properties

(繼承來源 PlacementAttribute)

適用於