コード例 #1
0
            public async Task DefaultTagsWithAssemblyCatalogTypeShouldNotDuplicatePlugins()
            {
                var catalog = new AssemblyPluginCatalog(@"..\..\..\..\..\Assemblies\bin\JsonNew\netstandard2.0\JsonNetNew.dll");
                await catalog.Initialize();

                Assert.Single(catalog.GetPlugins());
                var plugin = catalog.Get();

                Assert.Equal(2, plugin.Tags.Count);
                TypeFinderOptions.Defaults.TypeFinderCriterias.Clear();
            }
コード例 #2
0
 public Plugin Get(string name, Version version)
 {
     return(_catalog.Get(name, version));
 }