Example #1
0
 private static void Add(IDictionary <string, PluginPoint> extensions, PluginPoint plugin)
 {
     if (extensions[plugin.Name()] != null)
     {
         throw new System.ArgumentException("This plugin already has an plugin point with the name \"" + plugin.Name() + "\"");
     }
     extensions[plugin.Name()] = plugin;
 }
Example #2
0
        private ExtensionPointRepresentation Describe(PluginPoint extension)
        {
            ExtensionPointRepresentation representation = new ExtensionPointRepresentation(extension.Name(), extension.ForType(), extension.Description);

            extension.DescribeParameters(representation);
            return(representation);
        }