AzureConfigurationExtensions.AddAzureTableStorageProvider Method
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.
Adds a storage provider of type AzureTableStorage.
public static void AddAzureTableStorageProvider (this Orleans.Runtime.Configuration.ClusterConfiguration config, string providerName = "AzureTableStore", string connectionString = default, string tableName = "OrleansGrainState", bool deleteOnClear = false, bool useJsonFormat = false, bool useFullAssemblyNames = false, bool indentJson = false);
static member AddAzureTableStorageProvider : Orleans.Runtime.Configuration.ClusterConfiguration * string * string * string * bool * bool * bool * bool -> unit
<Extension()>
Public Sub AddAzureTableStorageProvider (config As ClusterConfiguration, Optional providerName As String = "AzureTableStore", Optional connectionString As String = Nothing, Optional tableName As String = "OrleansGrainState", Optional deleteOnClear As Boolean = false, Optional useJsonFormat As Boolean = false, Optional useFullAssemblyNames As Boolean = false, Optional indentJson As Boolean = false)
Parameters
- config
- ClusterConfiguration
The cluster configuration object to add provider to.
- providerName
- String
The provider name.
- connectionString
- String
The azure storage connection string. If none is provided, it will use the same as in the Globals configuration.
- tableName
- String
The table name where to store the state.
- deleteOnClear
- Boolean
Whether the provider deletes the state when ClearStateAsync(String, GrainReference, IGrainState) is called.
- useJsonFormat
- Boolean
Whether is stores the content as JSON or as binary in Azure Table.
- useFullAssemblyNames
- Boolean
Whether to use full assembly names in the serialized JSON. This value is ignored if useJsonFormat
is false.
- indentJson
- Boolean
Whether to indent (pretty print) the JSON. This value is ignored if useJsonFormat
is false.