AzureConfigurationExtensions.AddAzureQueueStreamProvider 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddAzureQueueStreamProvider(ClientConfiguration, String, String, Int32, String, Int32, PersistentStreamProviderState, PersistentStreamProviderConfig)
Adds a stream provider of type AzureQueueStreamProvider.
public static void AddAzureQueueStreamProvider (this Orleans.Runtime.Configuration.ClientConfiguration config, string providerName, string connectionString = default, int numberOfQueues = 8, string deploymentId = default, int cacheSize = 4096, Orleans.Providers.Streams.Common.PersistentStreamProviderState startupState = Orleans.Providers.Streams.Common.PersistentStreamProviderState.AgentsStarted, Orleans.Streams.PersistentStreamProviderConfig persistentStreamProviderConfig = default);
static member AddAzureQueueStreamProvider : Orleans.Runtime.Configuration.ClientConfiguration * string * string * int * string * int * Orleans.Providers.Streams.Common.PersistentStreamProviderState * Orleans.Streams.PersistentStreamProviderConfig -> unit
<Extension()>
Public Sub AddAzureQueueStreamProvider (config As ClientConfiguration, providerName As String, Optional connectionString As String = Nothing, Optional numberOfQueues As Integer = 8, Optional deploymentId As String = Nothing, Optional cacheSize As Integer = 4096, Optional startupState As PersistentStreamProviderState = Orleans.Providers.Streams.Common.PersistentStreamProviderState.AgentsStarted, Optional persistentStreamProviderConfig As PersistentStreamProviderConfig = Nothing)
参数
- config
- ClientConfiguration
要向其添加提供程序的群集配置对象。
- providerName
- String
提供程序名称
- connectionString
- String
Azure 存储连接字符串。 如果未提供,它将使用与全局配置中的相同。
- numberOfQueues
- Int32
要用作分区的队列数。
- deploymentId
- String
用于分区的部署 ID。 如果未指定,提供程序将使用与群集相同的 DeploymentId。
- cacheSize
- Int32
缓存大小。
- startupState
- PersistentStreamProviderState
永久性流提供程序的启动状态。
- persistentStreamProviderConfig
- PersistentStreamProviderConfig
与所有永久性流提供程序相关的设置。
适用于
AddAzureQueueStreamProvider(ClusterConfiguration, String, String, Int32, String, Int32, PersistentStreamProviderState, PersistentStreamProviderConfig)
Adds a stream provider of type AzureQueueStreamProvider.
public static void AddAzureQueueStreamProvider (this Orleans.Runtime.Configuration.ClusterConfiguration config, string providerName, string connectionString = default, int numberOfQueues = 8, string deploymentId = default, int cacheSize = 4096, Orleans.Providers.Streams.Common.PersistentStreamProviderState startupState = Orleans.Providers.Streams.Common.PersistentStreamProviderState.AgentsStarted, Orleans.Streams.PersistentStreamProviderConfig persistentStreamProviderConfig = default);
static member AddAzureQueueStreamProvider : Orleans.Runtime.Configuration.ClusterConfiguration * string * string * int * string * int * Orleans.Providers.Streams.Common.PersistentStreamProviderState * Orleans.Streams.PersistentStreamProviderConfig -> unit
<Extension()>
Public Sub AddAzureQueueStreamProvider (config As ClusterConfiguration, providerName As String, Optional connectionString As String = Nothing, Optional numberOfQueues As Integer = 8, Optional deploymentId As String = Nothing, Optional cacheSize As Integer = 4096, Optional startupState As PersistentStreamProviderState = Orleans.Providers.Streams.Common.PersistentStreamProviderState.AgentsStarted, Optional persistentStreamProviderConfig As PersistentStreamProviderConfig = Nothing)
参数
- config
- ClusterConfiguration
要向其添加提供程序的群集配置对象。
- providerName
- String
提供程序名称
- connectionString
- String
Azure 存储连接字符串。 如果未提供,它将使用与全局配置中的相同。
- numberOfQueues
- Int32
要用作分区的队列数。
- deploymentId
- String
用于分区的部署 ID。 如果未指定,提供程序将使用与群集相同的 DeploymentId。
- cacheSize
- Int32
缓存大小。
- startupState
- PersistentStreamProviderState
永久性流提供程序的启动状态。
- persistentStreamProviderConfig
- PersistentStreamProviderConfig
与所有永久性流提供程序相关的设置。