Loading the LionRepository Module
Copying the Amt LionRepository Module files
When the Amt LionRepository Module will be used on a machine which does not have an installed AMT Environment, it is necessary to copy the Amt LionRepository Module library files to this machine.
Copy the files LionRepository.dll , Asysco.Amt.Libs.dll and Asysco.Amt.Windows.dll from the folder <Your AMT Environment>\Lion, on a server with an installed AMT Environment, to a folder on the machine the Amt LionRepository Module will be used.
PowerShell
The LionRepository Module requires PowerShell 7.4.1 or higher when using the
Module in a PowerShell script.
|
Add-Type -Path '<Path to LionRepository Module>\Asysco.Amt.Libs.dll'
Add-Type -Path '<Path to LionRepository Module>\LionRepository.dll'
# Then create a LionRepository Module object
$Obj_Module = New-Object Asysco.Lion.Repository.Model.LionRepository
C# (.NET)
Refering to the LionRepository dll
Open (Create) the project to use the Com Module in, in Visual Studio. Then right click the References node of the project and click 'Add Reference'. Browse to the folder <Path to LionRepository Module> and add a reference to the LionRepository.dll.
The LionRepository Module can then be used in the code of the project.
It is advised to add the 'using
Asysco.Lion.Repository.Model;' and 'using Asysco.Lion.Repository.Interfaces;' directives to every code file the LionRepository Module will be used in. |