SiloBuilderExtensions.AddFaultInjectionMemoryStorage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddFaultInjectionMemoryStorage(ISiloBuilder, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>, Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>)
將接收器設定為使用 FaultInjectionGrainStorage 。
public static Orleans.Hosting.ISiloBuilder AddFaultInjectionMemoryStorage (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> configureOptions = default, Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.TestingHost.FaultInjectionGrainStorageOptions>> configureFaultInjectionOptions = default);
static member AddFaultInjectionMemoryStorage : Orleans.Hosting.ISiloBuilder * string * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.TestingHost.FaultInjectionGrainStorageOptions>> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddFaultInjectionMemoryStorage (builder As ISiloBuilder, name As String, Optional configureOptions As Action(Of OptionsBuilder(Of MemoryGrainStorageOptions)) = Nothing, Optional configureFaultInjectionOptions As Action(Of OptionsBuilder(Of FaultInjectionGrainStorageOptions)) = Nothing) As ISiloBuilder
參數
- builder
- ISiloBuilder
產生器。
- name
- String
儲存體提供者名稱。
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
記憶體儲存體組態委派。
- configureFaultInjectionOptions
- Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>
錯誤插入提供者組態委派。
傳回
定址接收器產生器
適用於
AddFaultInjectionMemoryStorage(ISiloBuilder, String, Action<MemoryGrainStorageOptions>, Action<FaultInjectionGrainStorageOptions>)
將接收器設定為使用 FaultInjectionGrainStorage 。
public static Orleans.Hosting.ISiloBuilder AddFaultInjectionMemoryStorage (this Orleans.Hosting.ISiloBuilder builder, string name, Action<Orleans.Configuration.MemoryGrainStorageOptions> configureOptions, Action<Orleans.TestingHost.FaultInjectionGrainStorageOptions> configureFaultInjectionOptions);
static member AddFaultInjectionMemoryStorage : Orleans.Hosting.ISiloBuilder * string * Action<Orleans.Configuration.MemoryGrainStorageOptions> * Action<Orleans.TestingHost.FaultInjectionGrainStorageOptions> -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddFaultInjectionMemoryStorage (builder As ISiloBuilder, name As String, configureOptions As Action(Of MemoryGrainStorageOptions), configureFaultInjectionOptions As Action(Of FaultInjectionGrainStorageOptions)) As ISiloBuilder
參數
- builder
- ISiloBuilder
產生器。
- name
- String
儲存體提供者名稱。
- configureOptions
- Action<MemoryGrainStorageOptions>
記憶體儲存體組態委派。
- configureFaultInjectionOptions
- Action<FaultInjectionGrainStorageOptions>
錯誤插入提供者組態委派。
傳回
定址接收器產生器