Interface IAssemblyLoadCheck
A check that an assembly of a package passes before the session loads it (AssemblyLoadCheck). The editor uses it to leave out a plugin built for a newer editor; the session itself checks nothing.
[Experimental("STREXP002")]
public interface IAssemblyLoadCheck
- Extension Methods
Methods
CanLoad(Package, string, ILogger)
Whether the session may load an assembly of a package. Called before the assembly loads, once per assembly and session; an assembly the process has loaded already is not checked.
bool CanLoad(Package package, string assemblyPath, ILogger log)
Parameters
packagePackageThe package whose assembly it is.
assemblyPathstringThe path of the assembly.
logILoggerThe log of the session's load, where the check says why it refuses an assembly.
Returns
- bool
True to load the assembly; false to leave it out.