mirror of
https://github.com/AlexMacocian/Slim.git
synced 2026-07-15 23:29:49 +00:00
20 lines
499 B
C#
20 lines
499 B
C#
using System;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Slim.Integration.ServiceCollection;
|
|
|
|
internal sealed class SlimServiceProviderIsService : IServiceProviderIsService
|
|
{
|
|
private readonly IServiceManager serviceManager;
|
|
|
|
public SlimServiceProviderIsService(IServiceManager serviceManager)
|
|
{
|
|
this.serviceManager = serviceManager;
|
|
}
|
|
|
|
public bool IsService(Type serviceType)
|
|
{
|
|
return this.serviceManager.IsRegistered(serviceType);
|
|
}
|
|
}
|