Skip to content

StatelessWorkerAttribute Methods

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.

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

override
View source
public override void Populate(IServiceProvider services, Type grainClass, GrainType grainType, Dictionary<string, string> properties)
Adds grain properties to properties.

Parameters

servicesIServiceProvider
The service provider.
grainClassType
The grain class.
grainTypeGrainType
The grain type id.
propertiesDictionary<string, string>
The properties collection which calls to this method should populate.