AdoNetConfigurationExtensions.AddAdoNetStorageProvider 方法

定义

添加类型的 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)

参数

config
ClusterConfiguration

要向其添加提供程序的群集配置对象。

providerName
String

提供程序名称。

connectionString
String

ADO.NET 存储连接字符串。 如果没有提供,它将使用与 Globals 配置中的相同。

serializationFormat
AdoNetSerializationFormat

数据将序列化到存储的格式。

适用于