FaultInjectionStorageServiceCollectionExtensions.AddFaultInjectionMemoryStorage Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<OptionsBuilder<MemoryGrainStorageOptions>>, Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>)
Configura un silo para usar FaultInjectionGrainStorage.
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
Parámetros
- services
- IServiceCollection
Los servicios.
- name
- String
Nombre del proveedor de almacenamiento.
- configureOptions
- Action<OptionsBuilder<MemoryGrainStorageOptions>>
Delegado de configuración de almacenamiento de memoria.
- configureFaultInjectionOptions
- Action<OptionsBuilder<FaultInjectionGrainStorageOptions>>
Delegado de configuración del proveedor de inserción de errores.
Devoluciones
Colección de servicios.
Se aplica a
AddFaultInjectionMemoryStorage(IServiceCollection, String, Action<MemoryGrainStorageOptions>, Action<FaultInjectionGrainStorageOptions>)
Configura un silo para usar FaultInjectionGrainStorage.
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
Parámetros
- services
- IServiceCollection
Los servicios.
- name
- String
Nombre del proveedor de almacenamiento.
- configureOptions
- Action<MemoryGrainStorageOptions>
Delegado de configuración de almacenamiento de memoria.
- configureFaultInjectionOptions
- Action<FaultInjectionGrainStorageOptions>
Delegado de configuración del proveedor de inserción de errores.
Devoluciones
Colección de servicios.