Configure your FlexWiki installation to register your ExposedClasses from your plugin assembly
Create a plugin assembly
A plugin assembly is simply a .NET assembly that exposes classes and methods for WikiTalk. You can just create a simple class library project in VisualStudio, and add a reference to FlexWiki.dll.
In your plugin assembly you must have one or more public classes that are "exposed." This means that they are marked with special attributes that enable them to work in WikiTalk engine.
You can read more details about this under ExposedClass and ExposedMethod, but a simple example would look roughly like this:
[ExposedClass("MyService", "Provides a simple service to WikiTalk")]
public class MyService
{
[ExposedMethod(ExposedMethodFlags.CachePolicyNone,
"Answer an adjusted version of the string we're passed")]
public static string AdjustString(string s)
{
return s + " is nice in WikiTalk";
}
...
}
Once this PlugIn was installed, it could be used from WikiTalk as follows:
@@MyService.AdjustString("Dancing")@@
which would produce:
Dancing is nice in WikiTalk
Configure your FlexWiki installation to register your ExposedClasses from your plugin assembly
Once you have your assembly all built, you need to install it so that FlexWiki will load it and the types it contains into the WikiTalk engine.