public override bool Supports(Type service)
{
if (base.Supports(service))
{
return true;
}
if (type2SubHandler.Contains(service))
{
return true;
}
if (service.IsGenericType && service.IsGenericTypeDefinition == false)
{
var openService = service.GetGenericTypeDefinition();
if (base.Supports(openService) == false)
{
return false;
}
return serviceStrategy == null || serviceStrategy.Supports(service, ComponentModel);
}
return false;
}