plugin example

Aug 20, 2009 at 7:14 PM

sorry I am probably being really dense, is there an example anywhere of how to modify toastify.xml to load a plugin ?

I have tried adding :

 

<Plugins>
    <Plugin>ExamplePlugin</Plugin>
  </Plugins>

 

and :

 

<Plugins>
    <Plugin>ExamplePlugin.dll</Plugin>
  </Plugins>

 

but neither work, toastify does not load the plugin.

 

Thanks.

Sep 5, 2009 at 9:11 AM

Replace <plugins /> in toastify.xml with

 

<Plugins>
    //  <PluginDetails>
    //    <FileName>ExamplePlugin.dll</FileName>                            Plugin filename
    //    <TypeName>ExamplePlugin.ExamplePlugin/TypeName>                   Plugin type name (Namespace + "." + ClassName)
    //    <SettingsC:\ToastifyLog.txt</Settings>                            Plugin settings data
    //  </PluginDetails>
    //</Plugins>

    <Plugins>

    <PluginDetails>

    <FileName>ExamplePlugin.dll</FileName>

    <TypeName>ExamplePlugin.ExamplePlugin</TypeName>

    <Settings>C:\ToastifyLog.txt</Settings>

    </PluginDetails>

    </Plugins>

 

(see exampleplugin.cs in source code)