- Compile this repository.
- Create a
Class Library(.NET Framework)
project. - Add the dll compiled in the step 1 as COM reference.
- Create a class named
O[PluginName]
orI[PluginName]
implementing the interfaceIInputPlugin
orIOutputPlugin
depending on the type of plugin.
Specify the attributePluginName
with the name that will be used from the command line and config file to execute the plugin, be sure to choose a short one. - Create a method
Execute
namespace plugin
{
[PluginAttribute(PluginName = "Updates")]
public class IUpdates : IInputPlugin
{
public string Execute()
{
...
return jsonstring;
}
}
}
namespace plugin
{
[PluginAttribute(PluginName = "Console")]
public class OConsole : IOutputPlugin
{
public void Execute(string json, string[] options)
{
...
}
}
}