LogConsistencyProviderAttribute Class
Definition
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.LogConsistencyProvider] attribute is used to define which consistency provider to use for grains using the log-view state abstraction.
Specifying [Orleans.Providers.LogConsistencyProvider] property is recommended for all grains that derive from LogConsistentGrain, such as JournaledGrain. If no [Orleans.Providers.LogConsistencyProvider] attribute is specified, then the runtime tries to locate one as follows. First, it looks for a "Default" provider in the configuration file, then it checks if the grain type defines a default. If a consistency 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 LogConsistencyProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type LogConsistencyProviderAttribute = class
inherit Attribute
Public NotInheritable Class LogConsistencyProviderAttribute
Inherits Attribute
- Inheritance
-
LogConsistencyProviderAttribute
- Attributes
Constructors
LogConsistencyProviderAttribute() |
Initializes a new instance of the LogConsistencyProviderAttribute class. |
Properties
ProviderName |
Gets or sets name of the provider to be used for consistency. |