Class StatelessWorkerAttribute
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.
Inherited Members
Namespace: Orleans.Concurrency
Assembly: Orleans.Core.Abstractions.dll
Syntax
public sealed class StatelessWorkerAttribute : PlacementAttribute
Constructors
| Improve this Doc View SourceStatelessWorkerAttribute()
Declaration
public StatelessWorkerAttribute()
StatelessWorkerAttribute(Int32)
Declaration
public StatelessWorkerAttribute(int maxLocalWorkers)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | maxLocalWorkers |