support for module translation download/install

This commit is contained in:
Shaun Walker
2022-07-26 14:44:06 -04:00
parent 985f003e6d
commit b8a31a8be9
4 changed files with 188 additions and 21 deletions

View File

@ -268,7 +268,7 @@ namespace Microsoft.Extensions.DependencyInjection
if (implementationType.AssemblyQualifiedName != null)
{
var serviceType = Type.GetType(implementationType.AssemblyQualifiedName.Replace(implementationType.Name, $"I{implementationType.Name}"));
services.AddScoped(serviceType ?? implementationType, implementationType);
services.AddTransient(serviceType ?? implementationType, implementationType);
}
}