Düzenle

Aracılığıyla paylaş


StorageProviderAttribute Class

Definition

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

StorageProviderAttribute()

Initializes a new instance of the StorageProviderAttribute class.

Properties

ProviderName

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

Applies to