Share via


RandomPlacementAttribute 類別

定義

將粒度類別標示為使用原則 RandomPlacement

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

備註

這是預設放置原則,因此此屬性不需要用於一般粒度。

建構函式

RandomPlacementAttribute()

將粒度類別標示為使用原則 RandomPlacement

屬性

PlacementStrategy

將粒度類別標示為使用原則 RandomPlacement

(繼承來源 PlacementAttribute)

方法

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

將粒度屬性加入至 properties

(繼承來源 PlacementAttribute)

適用於