Class StorageProviderAttribute
The [Orleans.Providers.StorageProvider] attribute is used to define which storage provider to use for persistence of grain state.
Specifying [Orleans.Providers.StorageProvider] property is recommended for all grains which extend Grain<T>. If no [Orleans.Providers.StorageProvider] attribute is specified, then a "Default" strorage provider will be used. If a suitable storage provider cannot be located for this grain, then the grain will fail to load into the Silo.
Inheritance
System.Object
StorageProviderAttribute
Namespace: Orleans.Providers
Assembly: Orleans.Core.Abstractions.dll
Syntax
public sealed class StorageProviderAttribute : Attribute
Constructors
| Improve this Doc View SourceStorageProviderAttribute()
Declaration
public StorageProviderAttribute()
Properties
| Improve this Doc View SourceProviderName
The name of the provider to be used for persisting of grain state
Declaration
public string ProviderName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |