You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/Recyclarr.Common/Extensions/AutofacExtensions.cs

13 lines
319 B

using Autofac;
namespace Recyclarr.Common.Extensions;
public static class AutofacExtensions
{
public static object ResolveGeneric(this ILifetimeScope scope, Type genericType, params Type[] genericArgs)
{
var type = genericType.MakeGenericType(genericArgs);
return scope.Resolve(type);
}
}