StatelessWorkerAttribute Class

Definition

The StatelessWorker attribute is used to mark grain class in which there is no expectation of preservation of grain state between requests and where multiple activations of the same grain are allowed to be created by the runtime.

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StatelessWorkerAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StatelessWorkerAttribute : Orleans.Placement.PlacementAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit PlacementAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StatelessWorkerAttribute = class
    inherit PlacementAttribute
    interface IGrainPropertiesProviderAttribute
Public NotInheritable Class StatelessWorkerAttribute
Inherits Attribute
Public NotInheritable Class StatelessWorkerAttribute
Inherits PlacementAttribute
Inheritance
StatelessWorkerAttribute
Inheritance
StatelessWorkerAttribute
Attributes
Implements

Constructors

StatelessWorkerAttribute()

Initializes a new instance of the StatelessWorkerAttribute class.

StatelessWorkerAttribute(Int32)

Initializes a new instance of the StatelessWorkerAttribute class.

Properties

MaxLocalWorkers

Maximal number of local StatelessWorkers in a single silo.

PlacementStrategy (Inherited from PlacementAttribute)

Methods

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

Adds grain properties to properties.

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

Adds grain properties to properties.

(Inherited from PlacementAttribute)

Applies to