Team XSockets.NET

Implement

In the previous section we created an export. This was done by decorating an interface with the Export attribute, but we can also use the RegisterExport<T> method if we want to.

Now that we have an export we need to implement the exported interface. If we do not implement the exported interface we will not get anything back from the PluginFramework.

public class TheAwesome : IAwesome
{
    public void DoStuff()
    {
        Console.WriteLine("Do stuff in the awesome");
    }
}

That's it, you have now created a module!

Next step will be to get the module from the PluginFramework

results matching ""

    No results matching ""