Edit

Share via


RandomPlacement Class

Definition

The random placement strategy specifies that new activations of a grain should be placed on a random, compatible server.

[Orleans.GenerateSerializer]
[Orleans.Immutable]
[Orleans.SuppressReferenceTracking]
[System.Serializable]
public sealed class RandomPlacement : Orleans.Runtime.PlacementStrategy
[System.Serializable]
public class RandomPlacement : Orleans.Runtime.PlacementStrategy
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
[<Orleans.SuppressReferenceTracking>]
[<System.Serializable>]
type RandomPlacement = class
    inherit PlacementStrategy
[<System.Serializable>]
type RandomPlacement = class
    inherit PlacementStrategy
Public NotInheritable Class RandomPlacement
Inherits PlacementStrategy
Public Class RandomPlacement
Inherits PlacementStrategy
Inheritance
RandomPlacement
Attributes

Constructors

Name Description
RandomPlacement()

Properties

Name Description
IsUsingGrainDirectory

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

(Inherited from PlacementStrategy)

Methods

Name Description
Initialize(GrainProperties)

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

(Inherited from PlacementStrategy)
PopulateGrainProperties(IServiceProvider, Type, GrainType, Dictionary<String,String>)

Populates grain properties to specify the preferred placement strategy.

(Inherited from PlacementStrategy)

Applies to