Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StorageProviderAttribute Class

Definition

Namespace:
Orleans.Providers
Assembly:
Orleans.dll
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core v1.5.10
Package:
Microsoft.Orleans.Core.Abstractions v10.0.0
Package:
Microsoft.Orleans.Core.Abstractions v2.4.5
Package:
Microsoft.Orleans.Core.Abstractions v3.6.5
Package:
Microsoft.Orleans.Core.Abstractions v7.2.5
Package:
Microsoft.Orleans.Core.Abstractions v8.0.0
Package:
Microsoft.Orleans.Core.Abstractions v8.1.0
Package:
Microsoft.Orleans.Core.Abstractions v8.2.0
Package:
Microsoft.Orleans.Core.Abstractions v9.0.0
Package:
Microsoft.Orleans.Core.Abstractions v9.1.2
Source:
ProviderGrainAttributes.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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" storage 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.

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class StorageProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type StorageProviderAttribute = class
 inherit Attribute
Public NotInheritable Class StorageProviderAttribute
Inherits Attribute
Inheritance
StorageProviderAttribute
Attributes

Constructors

Name Description
StorageProviderAttribute()

Initializes a new instance of the StorageProviderAttribute class.

Properties

Name Description
ProviderName

Gets or sets the name of the provider to be used for persisting of grain state.

Applies to