Class IServiceProviderExtensions
- Namespace
- Mithril.Core.Abstractions.Extensions
- Assembly
- Mithril.Core.Abstractions.dll
Service provider extensions
public static class IServiceProviderExtensions
- Inheritance
-
IServiceProviderExtensions
- Inherited Members
Methods
Exists<TClass>(IServiceProvider?)
Determines if the service has been registered.
public static bool Exists<TClass>(this IServiceProvider? services) where TClass : class
Parameters
services
IServiceProviderThe service provider.
Returns
- bool
True if it exists, false otherwise.
Type Parameters
TClass
The type of the class.