Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AdoNetGrainStorage Class
Definition
- Namespace:
- Orleans.Storage
- Assembly:
- Orleans.Persistence.AdoNet.dll
- Package:
- Microsoft.Orleans.Persistence.AdoNet v10.0.0
- Package:
- Microsoft.Orleans.Persistence.AdoNet v2.4.5
- Package:
- Microsoft.Orleans.Persistence.AdoNet v3.6.5
- Package:
- Microsoft.Orleans.Persistence.AdoNet v7.2.5
- Package:
- Microsoft.Orleans.Persistence.AdoNet v8.0.0
- Package:
- Microsoft.Orleans.Persistence.AdoNet v8.1.0
- Package:
- Microsoft.Orleans.Persistence.AdoNet v8.2.0
- Package:
- Microsoft.Orleans.Persistence.AdoNet v9.0.0
- Package:
- Microsoft.Orleans.Persistence.AdoNet v9.1.2
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.cs
- Source:
- AdoNetGrainStorage.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.
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 Microsoft.Data.SqlClientUseJsonFormat -- defaults to falseUseXmlFormat -- defaults to falseUseBinaryFormat -- defaults to true
Constructors
Fields
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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. |
