AdoNetGrainStorage 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.
A storage provider for writing grain state data to relational storage.
public class AdoNetGrainStorage : Orleans.ILifecycleParticipant<Orleans.Runtime.ISiloLifecycle>, Orleans.Storage.IGrainStorage
type AdoNetGrainStorage = class
interface IGrainStorage
interface ILifecycleParticipant<ISiloLifecycle>
Public Class AdoNetGrainStorage
Implements IGrainStorage, ILifecycleParticipant(Of ISiloLifecycle)
- Inheritance
-
AdoNetGrainStorage
- Implements
Remarks
Required configuration params: DataConnectionString
Optional configuration params: AdoInvariant
-- defaults to System.Data.SqlClient
UseJsonFormat
-- defaults to false
UseXmlFormat
-- defaults to false
UseBinaryFormat
-- defaults to true
Constructors
AdoNetGrainStorage(ILogger<AdoNetGrainStorage>, IProviderRuntime, IOptions<AdoNetGrainStorageOptions>, IOptions<ClusterOptions>, String) |
Fields
BinaryFormatSerializerTag |
Tag for BinaryFormatSerializer |
DefaultInitializationQuery |
The default query to initialize this structure from the Orleans database. |
JsonFormatSerializerTag |
Tag for JsonFormatSerializer |
XmlFormatSerializerTag |
Tag for XmlFormatSerializer |
Properties
CurrentOperationalQueries |
The queries currently used. When this is updated, the new queries will take effect immediately. |
HashPicker |
The hash generator used to hash natural keys, grain ID and grain type to a more narrow index. |
Serializer | |
StorageSerializationPicker |
A strategy to pick a serializer or a deserializer for storage operations. This can be used to:
|
Methods
ClearStateAsync(String, GrainReference, IGrainState) |
Clear state data function for this storage provider. |
ClearStateAsync<T>(String, GrainId, IGrainState<T>) |
Clear state data function for this storage provider. |
Participate(ISiloLifecycle) | |
ReadStateAsync(String, GrainReference, IGrainState) |
Read state data function for this storage provider. |
ReadStateAsync<T>(String, GrainId, IGrainState<T>) |
Read state data function for this storage provider. |
WriteStateAsync(String, GrainReference, IGrainState) |
Write state data function for this storage provider. |
WriteStateAsync<T>(String, GrainId, IGrainState<T>) |
Write state data function for this storage provider. |