IServiceProviderIsService
Provides methods to determine if the specified type is available from the IServiceProvider.
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Extensions.DependencyInjection
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface IServiceProviderIsService
{
bool IsService(Type serviceType);
}
}