fixes DisableAttribute implementation when looking for a type

This commit is contained in:
Shannon
2020-04-03 15:54:25 +11:00
parent c48f36f6a2
commit 604797d339

View File

@@ -1,4 +1,5 @@
using System;
using System.Reflection;
namespace Umbraco.Core.Composing
{
@@ -21,9 +22,9 @@ namespace Umbraco.Core.Composing
public DisableAttribute()
{ }
public DisableAttribute(string fullTypeName)
public DisableAttribute(string fullTypeName, string assemblyName)
{
DisabledType = Type.GetType(fullTypeName);
DisabledType = Assembly.Load(assemblyName)?.GetType(fullTypeName);
}
/// <summary>