Edit

Share via


AdoNetConfigurationExtensions.AddAdoNetStorageProvider Method

Definition

Adds a storage provider of type AdoNetStorageProvider.

public static void AddAdoNetStorageProvider (this Orleans.Runtime.Configuration.ClusterConfiguration config, string providerName = "AdoNetStorage", string connectionString = default, Orleans.Runtime.Configuration.AdoNetSerializationFormat serializationFormat = Orleans.Runtime.Configuration.AdoNetSerializationFormat.Xml);
static member AddAdoNetStorageProvider : Orleans.Runtime.Configuration.ClusterConfiguration * string * string * Orleans.Runtime.Configuration.AdoNetSerializationFormat -> unit
<Extension()>
Public Sub AddAdoNetStorageProvider (config As ClusterConfiguration, Optional providerName As String = "AdoNetStorage", Optional connectionString As String = Nothing, Optional serializationFormat As AdoNetSerializationFormat = Orleans.Runtime.Configuration.AdoNetSerializationFormat.Xml)

Parameters

config
ClusterConfiguration

The cluster configuration object to add provider to.

providerName
String

The provider name.

connectionString
String

The ADO.NET storage connection string. If none is provided, it will use the same as in the Globals configuration.

serializationFormat
AdoNetSerializationFormat

The format in which the data will serialized to the storage.

Applies to