private static async Task TypeCatalogSample() { Console.WriteLine("Type catalog sample"); var typePluginCatalog = new TypePluginCatalog(typeof(FirstPlugin)); await typePluginCatalog.Initialize(); var typePlugin = typePluginCatalog.Get(); var pluginInstance = (IPlugin)Activator.CreateInstance(typePlugin); pluginInstance.Run(); }
public Plugin Get(string name, Version version) { return(_catalog.Get(name, version)); }