ServiceCollectionDescriptorExtensions Clase
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í.
Métodos de extensión para agregar y quitar servicios a .IServiceCollection
public ref class ServiceCollectionDescriptorExtensions abstract sealed
public static class ServiceCollectionDescriptorExtensions
type ServiceCollectionDescriptorExtensions = class
Public Module ServiceCollectionDescriptorExtensions
- Herencia
-
ServiceCollectionDescriptorExtensions
Métodos
| Nombre | Description |
|---|---|
| Add(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Agrega una secuencia de ServiceDescriptor al |
| Add(IServiceCollection, ServiceDescriptor) |
Agrega el |
| RemoveAll(IServiceCollection, Type) |
Quita todos los servicios de tipo |
| RemoveAll<T>(IServiceCollection) |
Quita todos los servicios de tipo |
| RemoveAllKeyed(IServiceCollection, Type, Object) |
Quita todos los servicios de tipo |
| RemoveAllKeyed<T>(IServiceCollection, Object) |
Quita todos los servicios de tipo |
| Replace(IServiceCollection, ServiceDescriptor) |
Quita el primer servicio de IServiceCollection con el mismo tipo de servicio que |
| TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Agrega el |
| TryAdd(IServiceCollection, ServiceDescriptor) |
Agrega el |
| TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Agrega los ServiceDescriptorespecificados si un descriptor existente con la misma ServiceType y una implementación que aún no existe en |
| TryAddEnumerable(IServiceCollection, ServiceDescriptor) |
Agrega un ServiceDescriptor si un descriptor existente con el mismo ServiceType y una implementación que aún no existe en |
| TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Agrega el |
| TryAddKeyedScoped(IServiceCollection, Type, Object, Type) |
Agrega el |
| TryAddKeyedScoped(IServiceCollection, Type, Object) |
Agrega el |
| TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object) |
Agrega el |
| TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Agrega el |
| TryAddKeyedScoped<TService>(IServiceCollection, Object) |
Agrega el |
| TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Agrega el |
| TryAddKeyedSingleton(IServiceCollection, Type, Object, Type) |
Agrega el |
| TryAddKeyedSingleton(IServiceCollection, Type, Object) |
Agrega el |
| TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object) |
Agrega el |
| TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Agrega el |
| TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService) |
Agrega el |
| TryAddKeyedSingleton<TService>(IServiceCollection, Object) |
Agrega el |
| TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Agrega el |
| TryAddKeyedTransient(IServiceCollection, Type, Object, Type) |
Agrega el |
| TryAddKeyedTransient(IServiceCollection, Type, Object) |
Agrega el |
| TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object) |
Agrega el |
| TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Agrega el |
| TryAddKeyedTransient<TService>(IServiceCollection, Object) |
Agrega el |
| TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Agrega el |
| TryAddScoped(IServiceCollection, Type, Type) |
Agrega el |
| TryAddScoped(IServiceCollection, Type) |
Agrega el |
| TryAddScoped<TService,TImplementation>(IServiceCollection) |
Agrega el |
| TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Agrega el |
| TryAddScoped<TService>(IServiceCollection) |
Agrega el |
| TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Agrega el |
| TryAddSingleton(IServiceCollection, Type, Type) |
Agrega el |
| TryAddSingleton(IServiceCollection, Type) |
Agrega el |
| TryAddSingleton<TService,TImplementation>(IServiceCollection) |
Agrega el |
| TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Agrega el |
| TryAddSingleton<TService>(IServiceCollection, TService) |
Agrega el |
| TryAddSingleton<TService>(IServiceCollection) |
Agrega el |
| TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Agrega el |
| TryAddTransient(IServiceCollection, Type, Type) |
Agrega el |
| TryAddTransient(IServiceCollection, Type) |
Agrega el |
| TryAddTransient<TService,TImplementation>(IServiceCollection) |
Agrega el |
| TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Agrega el |
| TryAddTransient<TService>(IServiceCollection) |
Agrega el |