View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.EXTENSIONS   |

Code Reference

» Cat.ServiceCollection.Extensions Assembly » Cat.ServiceCollection.Extensions Namespace

ServiceCollectionExtensions Class

Extension methods for inspecting an Microsoft.Extensions.DependencyInjection.IServiceCollection’s existing registrations.

public static class ServiceCollectionExtensions

Inheritance System.Object → ServiceCollectionExtensions

Methods  
HasRegistrationFor(this IServiceCollection, Type) Checks whether the given service type is already registered in the service collection. An open generic type (such as typeof(IRepository<>)) matches any registration for that generic definition.
HasRegistrationFor<TService>(this IServiceCollection) Checks whether TService is already registered in the service collection.