Bewerken

Delen via


PlacementStrategy Class

Definition

The base type for all placement strategies.

[System.Serializable]
public abstract class PlacementStrategy
[System.Serializable]
[Orleans.SerializerTransparent]
public abstract class PlacementStrategy
[<System.Serializable>]
type PlacementStrategy = class
[<System.Serializable>]
[<Orleans.SerializerTransparent>]
type PlacementStrategy = class
Public MustInherit Class PlacementStrategy
Inheritance
PlacementStrategy
Derived
Attributes

Remarks

Orleans uses a configurable placement system to decide which server to place a grain on. Placement directors are used to decide where a grain activation should be placed. Placement directors are associated with grains using a placement strategy. Grains indicate their preferred placement strategy using an attribute on the grain class.

Constructors

PlacementStrategy()

Properties

IsUsingGrainDirectory

Gets a value indicating whether or not this placement strategy requires activations to be registered in the grain directory.

Methods

Initialize(GrainProperties)

Initializes an instance of this type using the provided grain properties.

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

Populates grain properties to specify the preferred placement strategy.

Applies to