Edit

Share via


RandomPlacementAttribute Class

Definition

Marks a grain class as using the RandomPlacement policy.

[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
Inheritance
RandomPlacementAttribute
Attributes

Remarks

This is the default placement policy, so this attribute does not need to be used for normal grains.

Constructors

Name Description
RandomPlacementAttribute()

Properties

Name Description
PlacementStrategy (Inherited from PlacementAttribute)

Methods

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

Adds grain properties to properties.

(Inherited from PlacementAttribute)

Applies to