IServiceCollection Interfaz

Definición

Especifica el contrato para una colección de descriptores de servicio.Specifies the contract for a collection of service descriptors.

public interface class IServiceCollection : System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public interface IServiceCollection : System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type IServiceCollection = interface
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
type IServiceCollection = interface
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
    interface IList<ServiceDescriptor>
Public Interface IServiceCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor)
Derivado
Implementaciones

Propiedades

Count

Obtiene el número de elementos incluidos en ICollection<T>.Gets the number of elements contained in the ICollection<T>.

(Heredado de ICollection<T>)
IsReadOnly

Obtiene un valor que indica si ICollection<T> es de solo lectura.Gets a value indicating whether the ICollection<T> is read-only.

(Heredado de ICollection<T>)
Item[Int32]

Obtiene o establece el elemento en el índice especificado.Gets or sets the element at the specified index.

(Heredado de IList<T>)

Métodos

Add(T)

Agrega un elemento a ICollection<T>.Adds an item to the ICollection<T>.

(Heredado de ICollection<T>)
Clear()

Quita todos los elementos de ICollection<T>.Removes all items from the ICollection<T>.

(Heredado de ICollection<T>)
Contains(T)

Determina si ICollection<T> contiene un valor específico.Determines whether the ICollection<T> contains a specific value.

(Heredado de ICollection<T>)
CopyTo(T[], Int32)

Copia los elementos de ICollection<T> en Array, empezando por un índice determinado de Array.Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

(Heredado de ICollection<T>)
GetEnumerator()

Devuelve un enumerador que recorre en iteración una colección.Returns an enumerator that iterates through a collection.

(Heredado de IEnumerable)
IndexOf(T)

Determina el índice de un elemento específico de IList<T>.Determines the index of a specific item in the IList<T>.

(Heredado de IList<T>)
Insert(Int32, T)

Inserta un elemento en la interfaz IList<T>, en el índice especificado.Inserts an item to the IList<T> at the specified index.

(Heredado de IList<T>)
Remove(T)

Quita la primera aparición de un objeto específico de la interfaz ICollection<T>.Removes the first occurrence of a specific object from the ICollection<T>.

(Heredado de ICollection<T>)
RemoveAt(Int32)

Quita el elemento de la interfaz IList<T> que se encuentra en el índice especificado.Removes the IList<T> item at the specified index.

(Heredado de IList<T>)

Métodos de extensión

AddWebEncoders(IServiceCollection)

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto services especificado.Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Agrega HtmlEncoder, JavaScriptEncoder y UrlEncoder al objeto services especificado.Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

Add(IServiceCollection, ServiceDescriptor)

Agrega el objeto descriptor especificado a la colección collection.Adds the specified descriptor to the collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Agrega una secuencia de ServiceDescriptor a collection.Adds a sequence of ServiceDescriptor to the collection.

RemoveAll(IServiceCollection, Type)

Quita todos los servicios de tipo serviceType en IServiceCollection.Removes all services of type serviceType in IServiceCollection.

RemoveAll<T>(IServiceCollection)

Quita todos los servicios de tipo T en IServiceCollection.Removes all services of type T in IServiceCollection.

Replace(IServiceCollection, ServiceDescriptor)

Quita el primer servicio de IServiceCollection con el mismo tipo de servicio que descriptor y agrega descriptor a la colección.Removes the first service in IServiceCollection with the same service type as descriptor and adds descriptor to the collection.

TryAdd(IServiceCollection, ServiceDescriptor)

Agrega el objeto descriptor especificado a collection si el tipo de servicio todavía no se ha registrado.Adds the specified descriptor to the collection if the service type hasn't already been registered.

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

Agrega el objeto descriptors especificado a collection si el tipo de servicio todavía no se ha registrado.Adds the specified descriptors to the collection if the service type hasn't already been registered.

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

Agrega un objeto ServiceDescriptor si un descriptor existente con el mismo objeto ServiceType y una implementación que todavía no existe en services.Adds a ServiceDescriptor if an existing descriptor with the same ServiceType and an implementation that does not already exist in services.

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

Agrega las instancias de ServiceDescriptor especificadas si un descriptor existente con el mismo objeto ServiceType y una implementación que todavía no existe en services.Adds the specified ServiceDescriptors if an existing descriptor with the same ServiceType and an implementation that does not already exist in services.

TryAddScoped(IServiceCollection, Type)

Agrega el objeto service especificado como servicio Scoped a collection si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Scoped service to the collection if the service type hasn't already been registered.

TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega a collection el objeto service especificado como servicio Scoped mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Scoped service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddScoped(IServiceCollection, Type, Type)

Agrega a collection el objeto service especificado como servicio Scoped con la implementación de implementationType si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Scoped service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddScoped<TService>(IServiceCollection)

Agrega el objeto TService especificado como servicio Scoped a collection si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Scoped service to the collection if the service type hasn't already been registered.

TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega a services el objeto TService especificado como servicio Scoped mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Scoped service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddScoped<TService,TImplementation>(IServiceCollection)

Agrega a collection el objeto TService especificado como tipo de implementación de servicio Scoped especificado en TImplementation si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Scoped service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type)

Agrega el objeto service especificado como servicio Singleton a collection si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Singleton service to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega a collection el objeto service especificado como servicio Singleton mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Singleton service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type, Type)

Agrega a collection el objeto service especificado como servicio Singleton con la implementación de implementationType si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Singleton service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection)

Agrega el objeto TService especificado como servicio Singleton a collection si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Singleton service to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection, TService)

Agrega a collection el objeto TService especificado como servicio Singleton con una instancia especificada en instance si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Singleton service with an instance specified in instance to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega a services el objeto TService especificado como servicio Singleton mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Singleton service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddSingleton<TService,TImplementation>(IServiceCollection)

Agrega a collection el objeto TService especificado como tipo de implementación de servicio Singleton especificado en TImplementation si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Singleton service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type)

Agrega el objeto service especificado como servicio Transient a collection si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Transient service to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega a collection el objeto service especificado como servicio Transient mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Transient service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type, Type)

Agrega a collection el objeto service especificado como servicio Transient con la implementación de implementationType si el tipo de servicio todavía no se ha registrado.Adds the specified service as a Transient service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddTransient<TService>(IServiceCollection)

Agrega el objeto TService especificado como servicio Transient a collection si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Transient service to the collection if the service type hasn't already been registered.

TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega a services el objeto TService especificado como servicio Transient mediante el generador especificado en implementationFactory si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Transient service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddTransient<TService,TImplementation>(IServiceCollection)

Agrega a collection el objeto TService especificado como tipo de implementación de servicio Transient especificado en TImplementation si el tipo de servicio todavía no se ha registrado.Adds the specified TService as a Transient service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

AddHealthChecks(IServiceCollection)

Agrega el objeto HealthCheckService al contenedor, mediante el delegado proporcionado para registrar las comprobaciones de estado.Adds the HealthCheckService to the container, using the provided delegate to register health checks.

AddHttpClient(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection.Adds the IHttpClientFactory and related services to the IServiceCollection.

AddHttpClient(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient<TClient>(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre completo de TClient.The client name will be set to the full name of TClient.

AddHttpClient<TClient>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient>(IServiceCollection, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient>(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient>(IServiceCollection, String, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,TImplementation>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,IServiceProvider,TImplementation>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. El nombre de cliente se establecerá en el nombre de tipo de TClient.The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<HttpClient>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,TImplementation>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,IServiceProvider,TImplementation>)

Agrega IHttpClientFactory y los servicios relacionados a IServiceCollection y configura un enlace entre el tipo TClient y un objeto HttpClient con nombre.Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddLocalization(IServiceCollection)

Agrega los servicios necesarios para la localización de la aplicación.Adds services required for application localization.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Agrega los servicios necesarios para la localización de la aplicación.Adds services required for application localization.

AddLogging(IServiceCollection)

Agrega servicios de registro a la instancia de IServiceCollection especificada.Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Agrega servicios de registro a la instancia de IServiceCollection especificada.Adds logging services to the specified IServiceCollection.

AddDistributedMemoryCache(IServiceCollection)

Agrega una implementación predeterminada de IDistributedCache que almacena elementos en memoria en IServiceCollection.Adds a default implementation of IDistributedCache that stores items in memory to the IServiceCollection. Los marcos de trabajo que requieren una caché distribuida para funcionar pueden agregar esta dependencia como parte de su lista de dependencias para asegurarse de que haya al menos una implementación disponible.Frameworks that require a distributed cache to work can safely add this dependency as part of their dependency list to ensure that there is at least one implementation available.

AddDistributedMemoryCache(IServiceCollection, Action<MemoryDistributedCacheOptions>)

Agrega una implementación predeterminada de IDistributedCache que almacena elementos en memoria en IServiceCollection.Adds a default implementation of IDistributedCache that stores items in memory to the IServiceCollection. Los marcos de trabajo que requieren una caché distribuida para funcionar pueden agregar esta dependencia como parte de su lista de dependencias para asegurarse de que haya al menos una implementación disponible.Frameworks that require a distributed cache to work can safely add this dependency as part of their dependency list to ensure that there is at least one implementation available.

AddMemoryCache(IServiceCollection)

Agrega una implementación de memoria no distribuida de IMemoryCache a IServiceCollection.Adds a non distributed in memory implementation of IMemoryCache to the IServiceCollection.

AddMemoryCache(IServiceCollection, Action<MemoryCacheOptions>)

Agrega una implementación de memoria no distribuida de IMemoryCache a IServiceCollection.Adds a non distributed in memory implementation of IMemoryCache to the IServiceCollection.

Configure<TOptions>(IServiceCollection, IConfiguration)

Registra una instancia de configuración para enlazarla a TOptions y actualiza las opciones cuando cambia la configuración.Registers a configuration instance that TOptions will bind against, and updates the options when the configuration changes.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Registra una instancia de configuración sobre la que se enlazará TOptions.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Registra una instancia de configuración sobre la que se enlazará TOptions.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Registra una instancia de configuración sobre la que se enlazará TOptions.Registers a configuration instance which TOptions will bind against.

AddOptions(IServiceCollection)

Agrega los servicios necesarios para usar las opciones.Adds services required for using options.

AddOptions<TOptions>(IServiceCollection)

Obtiene un generador de opciones que reenvía las llamadas de configuración para la misma instancia de TOptions con nombre a la colección de servicios subyacente.Gets an options builder that forwards Configure calls for the same named TOptions to the underlying service collection.

AddOptions<TOptions>(IServiceCollection, String)

Obtiene un generador de opciones que reenvía las llamadas de configuración para la misma instancia de TOptions con nombre a la colección de servicios subyacente.Gets an options builder that forwards Configure calls for the same named TOptions to the underlying service collection.

Configure<TOptions>(IServiceCollection, Action<TOptions>)

Registra una acción para configurar un tipo de opciones concreto una vez durante el inicio.Registers an action used to configure a particular type of options once during startup. Se ejecuta antes de PostConfigure<TOptions>(IServiceCollection, Action<TOptions>).This is run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>). Las actualizaciones de la configuración no invocan la acción de nuevo.Updates to the configuration does not invoke the action again.

Configure<TOptions>(IServiceCollection, String, Action<TOptions>)

Registra una acción para configurar un tipo de opciones concreto.Registers an action used to configure a particular type of options. Estas se ejecutan antes de todas las instancias de PostConfigure<TOptions>(IServiceCollection, Action<TOptions>).These are run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>).

ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

Registra una acción que se usa para configurar todas las instancias de un tipo de opciones concreto.Registers an action used to configure all instances of a particular type of options.

ConfigureOptions(IServiceCollection, Object)

Registra un objeto que tendrá todas las opciones I[Post]ConfigureOptions registradas.Registers an object that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Type)

Registra un tipo que tendrá todas las opciones I[Post]ConfigureOptions registradas.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Registra un tipo que tendrá todas las opciones I[Post]ConfigureOptions registradas.Registers a type that will have all of its I[Post]ConfigureOptions registered.

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

Registra una acción que se usa para inicializar un tipo de opciones concreto.Registers an action used to initialize a particular type of options. Estas se ejecutan después de todas las instancias de Configure<TOptions>(IServiceCollection, Action<TOptions>).These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

Registra una acción para configurar un tipo de opciones concreto.Registers an action used to configure a particular type of options. Estas se ejecutan después de todas las instancias de Configure<TOptions>(IServiceCollection, Action<TOptions>).These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

Registra una acción que se usa para la configuración posterior de todas las instancias de un tipo de opciones concreto.Registers an action used to post configure all instances of a particular type of options. Estas se ejecutan después de todas las instancias de Configure<TOptions>(IServiceCollection, Action<TOptions>).These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

AddPolicyRegistry(IServiceCollection)

Registra una instancia de PolicyRegistry vacía en la colección de servicios con los tipos de servicio IPolicyRegistry<TKey> y IReadOnlyPolicyRegistry<TKey>, y devuelve el registro recién creado.Registers an empty PolicyRegistry in the service collection with service types IPolicyRegistry<TKey>, and IReadOnlyPolicyRegistry<TKey> and returns the newly created registry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Registra la instancia de IPolicyRegistry<TKey> proporcionada en la colección de servicios con los tipos de servicio IPolicyRegistry<TKey> y IReadOnlyPolicyRegistry<TKey>, y devuelve el registro proporcionado.Registers the provided IPolicyRegistry<TKey> in the service collection with service types IPolicyRegistry<TKey>, and IReadOnlyPolicyRegistry<TKey> and returns the provided registry.

AddDistributedRedisCache(IServiceCollection, Action<RedisCacheOptions>)

Agrega servicios de almacenamiento en caché en Redis al objeto IServiceCollection especificado.Adds Redis distributed caching services to the specified IServiceCollection.

BuildServiceProvider(IServiceCollection)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada.Creates a ServiceProvider containing services from the provided IServiceCollection.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la creación de servicios y la validación de ámbitos.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling service-creation and scope validation.

BuildServiceProvider(IServiceCollection, Boolean)

Crea un objeto ServiceProvider que contiene servicios de la interfaz IServiceCollection proporcionada y habilita opcionalmente la validación de ámbito.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

AddHostedService<THostedService>(IServiceCollection)

Se agrega un registro de IHostedService para el tipo especificado.Add an IHostedService registration for the given type.

AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)

Se agrega un registro de IHostedService para el tipo especificado.Add an IHostedService registration for the given type.

AddScoped(IServiceCollection, Type)

Agrega un servicio con ámbito del tipo especificado en serviceType a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in serviceType to the specified IServiceCollection.

AddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega un servicio con ámbito del tipo especificado en serviceType con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddScoped(IServiceCollection, Type, Type)

Agrega un servicio con ámbito del tipo especificado en serviceType con una implementación del tipo especificado en implementationType a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddScoped<TService>(IServiceCollection)

Agrega un servicio con ámbito del tipo especificado en TService a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in TService to the specified IServiceCollection.

AddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega un servicio con ámbito del tipo especificado en TService con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection)

Agrega un servicio con ámbito del tipo especificado en TService con un tipo de implementación especificado en TImplementation a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

Agrega un servicio con ámbito del tipo especificado en TService con un tipo de implementación especificado en TImplementation mediante el generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a scoped service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type)

Agrega un servicio singleton del tipo especificado en serviceType a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in serviceType to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega un servicio singleton del tipo especificado en serviceType con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Object)

Agrega un servicio singleton del tipo especificado en serviceType con una instancia especificada en implementationInstance a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in serviceType with an instance specified in implementationInstance to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Type)

Agrega un servicio singleton del tipo especificado en serviceType con una implementación del tipo especificado en implementationType a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection)

Agrega un servicio singleton del tipo especificado en TService a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in TService to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection, TService)

Agrega un servicio singleton del tipo especificado en TService con una instancia especificada en implementationInstance a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in TService with an instance specified in implementationInstance to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega un servicio singleton del tipo especificado en TService con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection)

Agrega un servicio singleton del tipo especificado en TService con un tipo de implementación especificado en TImplementation a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

Agrega un servicio singleton del tipo especificado en TService con un tipo de implementación especificado en TImplementation mediante el generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a singleton service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddTransient(IServiceCollection, Type)

Agrega un servicio transitorio del tipo especificado en serviceType a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in serviceType to the specified IServiceCollection.

AddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

Agrega un servicio transitorio del tipo especificado en serviceType con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddTransient(IServiceCollection, Type, Type)

Agrega un servicio transitorio del tipo especificado en serviceType con una implementación del tipo especificado en implementationType a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddTransient<TService>(IServiceCollection)

Agrega un servicio transitorio del tipo especificado en TService a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in TService to the specified IServiceCollection.

AddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

Agrega un servicio transitorio del tipo especificado en TService con un generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection)

Agrega un servicio transitorio del tipo especificado en TService con un tipo de implementación especificado en TImplementation a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

Agrega un servicio transitorio del tipo especificado en TService con un tipo de implementación especificado en TImplementation mediante el generador especificado en implementationFactory a la instancia de IServiceCollection especificada.Adds a transient service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddDistributedSqlServerCache(IServiceCollection, Action<SqlServerCacheOptions>)

Agrega servicios de almacenamiento en caché distribuida de Microsoft SQL Server al objeto IServiceCollection especificado.Adds Microsoft SQL Server distributed caching services to the specified IServiceCollection.

AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>)

Agrega servicios de almacenamiento en caché en Redis al objeto IServiceCollection especificado.Adds Redis distributed caching services to the specified IServiceCollection.

CopyToDataTable<T>(IEnumerable<T>)

Devuelve un objeto DataTable que contiene copias de los objetos DataRow, dado un objeto IEnumerable<T> de entrada donde el parámetro T genérico es DataRow.Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copia objetos DataRow en el objeto DataTable especificado, dado un objeto IEnumerable<T> de entrada donde el parámetro T genérico es DataRow.Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copia objetos DataRow en el objeto DataTable especificado, dado un objeto IEnumerable<T> de entrada donde el parámetro T genérico es DataRow.Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Se aplica a