|
I have a place in my application that I'm building on SoapBox Core, and I want 3rd parties to be able to extend this point with their own custom logic. |
Importing and Executing a List of IExecutableCommandsIn order to import a list of commands, you need a reference to the Extension Service, and you will probably want a reference to the Logging Service as well, in case something goes wrong with the commands and you want to log the error. Of course you also need to get a reference to the commands themselves. Use an Import Attribute in a class that exports itself and is somehow already imported by SoapBox Core. Here is an example:
|