Interface IAddInLoaderHelper
Namespace: LemonEdge.API.Core.Context.AddIns
Assembly: LemonEdge.API.dll
Syntax
public interface IAddInLoaderHelper
Properties
Type
The type of environment this loader is running in - either a specific client type, or back end service core code only
Declaration
FrameworkType Type { get; set; }
Property Value
Type | Description |
---|---|
FrameworkType |
Methods
Init(IEntityRetriever)
Loads all the addins for the current Type from the provided context.
Can be used when initially connecting to the system after logging in to dynamically load all modules instead of using Type
Declaration
Task Init(IEntityRetriever context)
Parameters
Type | Name | Description |
---|---|---|
IEntityRetriever | context | A context for loading all the addins and modules from |
Returns
Type | Description |
---|---|
Task | A task indicating the completion of the operation |
LoadAddins(IEnumerable<CustomAddIn>)
Loads all the specified addin modules and associated addins and dynamically creates and loads those dlls form this image (AddInData)
Declaration
Task<IEnumerable<CustomAddIn>> LoadAddins(IEnumerable<CustomAddIn> addIns = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CustomAddIn> | addIns | An enumeration of modules and their associated addins to be loaded dynamically |
Returns
Type | Description |
---|---|
Task<IEnumerable<CustomAddIn>> | A task indicating the completion of the operation |
LoadCustomObjects(CustomObjectSet, bool)
Loads all the specified custom objects, creates their equivalent code add dynamic loads those dlls as AddIns for the system to use
Not all custom objects are loaded, as some are disabled (LoadDynamically) as users may be loaded the provided code through their own dll
You should not need to use this, the system will automatically call it when any changes that affects the custom objects are successfully committed
Declaration
Task<CustomAssembly> LoadCustomObjects(CustomObjectSet set, bool throwErrors)
Parameters
Type | Name | Description |
---|---|---|
CustomObjectSet | set | |
bool | throwErrors | If false the system will just log errors, otherwise it will also throw them |
Returns
Type | Description |
---|---|
Task<CustomAssembly> | A task indicating the completion of the operation |
LoadStandardExecutableReferences()
Ensures all loaded dlls are added as executable references to the main CodeBuilder to ensure all scripts dynamically work and can reference dlls
Declaration
Task LoadStandardExecutableReferences()
Returns
Type | Description |
---|---|
Task | Task indicating completion of operation |
SetAddInManager(IAddInManager)
Sets the add-in manager instance to use (i.e. database or service connection)
Declaration
void SetAddInManager(IAddInManager addInManager)
Parameters
Type | Name | Description |
---|---|---|
IAddInManager | addInManager |