Freigeben über


FaultInjectionStorageServiceCollectionExtensions.AddFaultInjectionMemoryStorage Methode

Definition

Überlädt

AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>, Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>)

Konfiguriert einen Silo für die Verwendung FaultInjectionGrainStoragevon .

AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<MemoryGrainStorageOptions>, Action<FaultInjectionGrainStorageOptions>)

Konfiguriert einen Silo für die Verwendung FaultInjectionGrainStoragevon .

AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>, Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>)

Konfiguriert einen Silo für die Verwendung FaultInjectionGrainStoragevon .

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFaultInjectionMemoryStorage (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, 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 : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.Configuration.MemoryGrainStorageOptions>> * Action<Microsoft.Extensions.Options.OptionsBuilder<Orleans.TestingHost.FaultInjectionGrainStorageOptions>> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFaultInjectionMemoryStorage (services As IServiceCollection, name As String, Optional configureOptions As Action(Of OptionsBuilder(Of MemoryGrainStorageOptions)) = Nothing, Optional configureFaultInjectionOptions As Action(Of OptionsBuilder(Of FaultInjectionGrainStorageOptions)) = Nothing) As IServiceCollection

Parameter

services
IServiceCollection

Die Dienste.

name
String

Der Name des Speicheranbieters.

configureOptions
Action<OptionsBuilder<MemoryGrainStorageOptions>>

Der Speicherkonfigurationsdelegat.

configureFaultInjectionOptions
Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>

Der Konfigurationsdelegat des Fehlerinjektionsanbieters.

Gibt zurück

Die Dienstauflistung.

Gilt für:

AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<MemoryGrainStorageOptions>, Action<FaultInjectionGrainStorageOptions>)

Konfiguriert einen Silo für die Verwendung FaultInjectionGrainStoragevon .

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFaultInjectionMemoryStorage (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Action<Orleans.Configuration.MemoryGrainStorageOptions> configureOptions, Action<Orleans.TestingHost.FaultInjectionGrainStorageOptions> configureFaultInjectionOptions);
static member AddFaultInjectionMemoryStorage : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<Orleans.Configuration.MemoryGrainStorageOptions> * Action<Orleans.TestingHost.FaultInjectionGrainStorageOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFaultInjectionMemoryStorage (services As IServiceCollection, name As String, configureOptions As Action(Of MemoryGrainStorageOptions), configureFaultInjectionOptions As Action(Of FaultInjectionGrainStorageOptions)) As IServiceCollection

Parameter

services
IServiceCollection

Die Dienste.

name
String

Der Name des Speicheranbieters.

configureOptions
Action<MemoryGrainStorageOptions>

Der Speicherkonfigurationsdelegat.

configureFaultInjectionOptions
Action<FaultInjectionGrainStorageOptions>

Der Konfigurationsdelegat des Fehlerinjektionsanbieters.

Gibt zurück

Die Dienstauflistung.

Gilt für: