You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop using System.ComponentModel.Composition (dotnet#2569)
* Stop using System.ComponentModel.Composition
Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.
Fixdotnet#1595Fixdotnet#2422
* Rename new class to CustomMappingFactory.
throwContracts.Except($"An extension for '{key.AttributeType.Name}' with contract '{key.ContractName}' has already been registered in the ComponentCatalog.");
1008
+
}
1009
+
}
1010
+
else
1011
+
{
1012
+
_extensionsMap.Add(key,type);
1013
+
}
1014
+
}
1015
+
}
1016
+
}
1017
+
}
1018
+
}
1019
+
1020
+
/// <summary>
1021
+
/// Gets a value indicating whether <paramref name="assembly"/> can contain extensions.
1022
+
/// </summary>
1023
+
/// <remarks>
1024
+
/// All ML.NET product assemblies won't contain extensions.
throwenv.Except($"Unable to locate an extension for the contract '{contractName}'. Ensure you have called {nameof(ComponentCatalog)}.{nameof(ComponentCatalog.RegisterAssembly)} with the Assembly that contains a class decorated with a '{attributeType.FullName}'.");
0 commit comments