Share via


ActivationCountBasedPlacementAttribute 類別

定義

將粒紋類別標示為使用原則 ActivationCountBasedPlacement ,它會根據每部伺服器最近使用中粒度的相對數目,嘗試平衡伺服器之間的粒度放置。

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class ActivationCountBasedPlacementAttribute : Orleans.Placement.PlacementAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type ActivationCountBasedPlacementAttribute = class
    inherit PlacementAttribute
Public NotInheritable Class ActivationCountBasedPlacementAttribute
Inherits PlacementAttribute
繼承
ActivationCountBasedPlacementAttribute
屬性

備註

如需詳細資訊,請參閱有關 的文件。

建構函式

ActivationCountBasedPlacementAttribute()

初始化 ActivationCountBasedPlacementAttribute 類別的新執行個體。

屬性

PlacementStrategy

將粒紋類別標示為使用原則 ActivationCountBasedPlacement ,它會根據每部伺服器最近使用中粒度的相對數目,嘗試平衡伺服器之間的粒度放置。

(繼承來源 PlacementAttribute)

方法

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

將粒度屬性加入至 properties

(繼承來源 PlacementAttribute)

適用於