共用方式為


FaultInjectionStorageProviderConfigurationExtensions.AddFaultyMemoryStorageProvider 方法

定義

新增類型的儲存體提供者 FaultyMemoryStorage

public static void AddFaultyMemoryStorageProvider (this Orleans.Runtime.Configuration.ClusterConfiguration config, string providerName = "FaultyMemoryStore", int numStorageGrains = 10, int delayMilliseconds = 0);
static member AddFaultyMemoryStorageProvider : Orleans.Runtime.Configuration.ClusterConfiguration * string * int * int -> unit
<Extension()>
Public Sub AddFaultyMemoryStorageProvider (config As ClusterConfiguration, Optional providerName As String = "FaultyMemoryStore", Optional numStorageGrains As Integer = 10, Optional delayMilliseconds As Integer = 0)

參數

config
ClusterConfiguration

要加入提供者的叢集組態物件。

providerName
String

提供者名稱。

numStorageGrains
Int32

要使用的儲存體細微性數目。

delayMilliseconds
Int32

要新增至每個存取的延遲,以毫秒為單位

適用於