Skip to content

StorageProviderAttribute

class

Namespace: Orleans.Providers

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.

public sealed class StorageProviderAttribute : Attribute

Constructors

Properties

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