StatelessWorkerAttribute
class
Namespace: Orleans.Concurrency
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.
public sealed class StatelessWorkerAttribute : PlacementAttribute, IGrainPropertiesProviderAttributeConstructors
StatelessWorkerAttributeInitializes a new instance of theStatelessWorkerAttributeclass.StatelessWorkerAttribute(int)Initializes a new instance of theStatelessWorkerAttributeclass.StatelessWorkerAttribute(int, bool)Initializes a new instance of theStatelessWorkerAttributeclass.
Methods
Populate(IServiceProvider, Type, GrainType, Dictionary<string, string>)Adds grain properties toproperties.
