
Error Handling
You can get information about eventual errors from that PluginFramework by using the AddErrorAction to register 1 or more actions to be called when an error occurs.
Example
Let's create an error by trying to use an interface that is neither Exported or registered with the RegisterExport method.
The interface
public interface IDoNotExist{}
Register the action
Composable.AddErrorAction((err) =>
{
Console.WriteLine(err.Message);
});
Ask for the module (will fire the error action)
Composable.GetExport<IDoNotExist>();
Output
Sequence contains no matching element