Class AddInLoadContext
- Namespace
- Dynamicweb.Extensibility.Add
Ins
- Assembly
- Dynamicweb.Core.dll
A custom Assembly
- Inheritance
-
Add
InLoad Context
- Inherited Members
Methods
Create(string)
Creates a new Add
Parameters
addinPath
stringThe path to the addin to load into the context.
Returns
- Add
InLoad Context A new context instance.
Create(string, string?)
Creates a new Add
Parameters
addinPath
stringThe path to the addin to load into the context.
name
stringThe name of the context.
Returns
- Add
InLoad Context A new context instance.
Create(string, string?, string?)
Creates a new Add
Parameters
addinPath
stringThe path to the addin to load into the context.
resolverPath
stringThe path to use for resolving dependencies.
name
stringThe name of the context.
Returns
- Add
InLoad Context A new context instance.
Exceptions
- Argument
Null Exception If
addinPath
isnull
.- Argument
Exception If
addinPath
is the empty string.- File
Not Found Exception If the addin file doesn't exist.
- Directory
Not Found Exception If the resolver path is given but doesn't exist.
- Invalid
Operation Exception If the name of the addin folder cannot be determined from the path.
CreateFromFolderPath(string)
Creates a Add
Parameters
path
stringThe path of the folder to load addins from
Returns
- Add
InLoad Context A new context instance.
Exceptions
- Argument
Null Exception If
path
isnull
.- Argument
Exception If
path
is the empty string.- Directory
Not Found Exception If the given path doesn't exist.
- File
Not Found Exception If no primary addin could be found in the folder.
GetAssemblyBytes()
Gets the bytes of the primary assembly loaded into the context.
Returns
- byte[]
GetPrimaryAssembly()
Gets the primary assembly loaded into the context.
Returns
Load(AssemblyName)
When overridden in a derived class, allows an assembly to be resolved based on its Assembly
Parameters
assemblyName
AssemblyName The object that describes the assembly to be resolved.
Returns
TryCreateFromFolderPath(string)
Tries to create a Add
Parameters
path
stringThe path of the folder to load addins from
Returns
- Add
InLoad Context A new context instance or
null
.