# StatelessWorkerAttribute

Package: [Microsoft.Orleans.Core.Abstractions](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Core.Abstractions) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/Concurrency/GrainAttributeConcurrency.cs#L60)

```csharp
public sealed class StatelessWorkerAttribute : PlacementAttribute, IGrainPropertiesProviderAttribute
```

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.

## Constructors

- [StatelessWorkerAttribute](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.concurrency.statelessworkerattribute/constructors/constructor-85926961/)
- [StatelessWorkerAttribute(int)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.concurrency.statelessworkerattribute/constructors/constructor-int-37320ca2/)
- [StatelessWorkerAttribute(int, bool)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.concurrency.statelessworkerattribute/constructors/constructor-int-bool-474d30a5/)

## Methods

- [Populate(IServiceProvider, Type, GrainType, Dictionary&lt;string, string&gt;)](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.concurrency.statelessworkerattribute/methods/populate-system-iserviceprovider-system-type-orleans-runtime-graintype-system-co-03d4f47c/)
