有没有办法让MEF用不同的构造函数参数创建同一个类的多个实例? E.G. class MefTest
{
[Test]
public void Test()
{
var aggregateCatalog = new AggregateCatalog(new TypeCatalog(typeof(MyExportType)));
var co
我试图在ServiceStack中使用MEF作为ContainerAdapter(https://github.com/ServiceStack/ServiceStack/wiki/The-IoC-container)。 我做了ContainerAdapter: internal class MefIocAdapter : IContainerAdapter
{
private rea
我已经创建了IVsInvisibleEditor的一个实例。我用下面的代码来实现这一目标: public IWpfTextViewHost CreateEditor(string targetFile)
{
var componentModel = (IComponentModel)Microsoft.VisualStudio.Shell.Package.GetGlobalS