ServiceCollectionDescriptorExtensions Classe
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Métodos de extensão para adicionar e remover serviços para uma IServiceCollection.
public ref class ServiceCollectionDescriptorExtensions abstract sealed
public static class ServiceCollectionDescriptorExtensions
type ServiceCollectionDescriptorExtensions = class
Public Module ServiceCollectionDescriptorExtensions
- Herança
-
ServiceCollectionDescriptorExtensions
Métodos
Add(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Adiciona uma sequência de ServiceDescriptor à |
Add(IServiceCollection, ServiceDescriptor) |
Adiciona o |
RemoveAll(IServiceCollection, Type) |
Remove todos os serviços do tipo |
RemoveAll<T>(IServiceCollection) |
Remove todos os serviços do tipo |
RemoveAllKeyed(IServiceCollection, Type, Object) |
Remove todos os serviços do tipo |
RemoveAllKeyed<T>(IServiceCollection, Object) |
Remove todos os serviços do tipo |
Replace(IServiceCollection, ServiceDescriptor) |
Remove o primeiro serviço na IServiceCollection com o mesmo tipo de serviço que |
TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Adicionará o |
TryAdd(IServiceCollection, ServiceDescriptor) |
Adicionará o |
TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>) |
Adicionará os ServiceDescriptors especificados se um descritor existente com o mesmo ServiceType e uma implementação que ainda não existe em |
TryAddEnumerable(IServiceCollection, ServiceDescriptor) |
Adicionará um ServiceDescriptor se um descritor existente com o mesmo ServiceType e uma implementação que ainda não existe em |
TryAddKeyedScoped(IServiceCollection, Type, Object) |
Adicionará o |
TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adicionará o |
TryAddKeyedScoped(IServiceCollection, Type, Object, Type) |
Adicionará o |
TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedScoped<TService>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adicionará o |
TryAddKeyedSingleton(IServiceCollection, Type, Object) |
Adicionará o |
TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adicionará o |
TryAddKeyedSingleton(IServiceCollection, Type, Object, Type) |
Adicionará o |
TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedSingleton<TService>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adicionará o |
TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService) |
Adicionará o |
TryAddKeyedTransient(IServiceCollection, Type, Object) |
Adicionará o |
TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>) |
Adicionará o |
TryAddKeyedTransient(IServiceCollection, Type, Object, Type) |
Adicionará o |
TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedTransient<TService>(IServiceCollection, Object) |
Adicionará o |
TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>) |
Adicionará o |
TryAddScoped(IServiceCollection, Type) |
Adicionará o |
TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adicionará o |
TryAddScoped(IServiceCollection, Type, Type) |
Adicionará o |
TryAddScoped<TService,TImplementation>(IServiceCollection) |
Adicionará o |
TryAddScoped<TService>(IServiceCollection) |
Adicionará o |
TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adicionará o |
TryAddSingleton(IServiceCollection, Type) |
Adicionará o |
TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adicionará o |
TryAddSingleton(IServiceCollection, Type, Type) |
Adicionará o |
TryAddSingleton<TService,TImplementation>(IServiceCollection) |
Adicionará o |
TryAddSingleton<TService>(IServiceCollection) |
Adicionará o |
TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adicionará o |
TryAddSingleton<TService>(IServiceCollection, TService) |
Adicionará o |
TryAddTransient(IServiceCollection, Type) |
Adicionará o |
TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>) |
Adicionará o |
TryAddTransient(IServiceCollection, Type, Type) |
Adicionará o |
TryAddTransient<TService,TImplementation>(IServiceCollection) |
Adicionará o |
TryAddTransient<TService>(IServiceCollection) |
Adicionará o |
TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>) |
Adicionará o |