-
Notifications
You must be signed in to change notification settings - Fork 0
API usage
SETUP
Make sure you have vs2010/2012, or an IDE that supports .NET 4.0+
First download the dll, or compile the project to get the API dll.
It is recommended to use the newer tutorial instead.
Next start a new class library project. Next add a reference to System.ComponentModule.Composition and the API Add a using statement for System.ComponentModule.Composition and a using statement for returnzork.BackupV3_API
Coding
- change the public class Class1 to class Class1 : BackupV3API
- Above the renamed class, add [Export(typeof(BackupV3API))]
- in the interface method, add 5 methods. Method 1: public string Author()
Method 2: public string Version()
Method 3: public string Name()
Method 4: public void Work(string[] imports)
Method 5: public void Interface()
Method 1 returns the author name, Method 2 returns the version number (with a string, not an int) Method 3 returns the plugin Name (should be a brief description) Method 4 is the work that this plugin does Method 5 is an interface for your plugin, for a settings menu etc.
Now you should have:
