Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.9.8
|
When the listening service is started, the addins in the Configuration folder are loaded first, followed by the addins in the AddIns folder. The AddIns contains several addins, one of which is the Leadtools.Medical.Storage.Addins.dll. The Leadtools.Medical.Storage.Addins.dll contains addins for query, store, and move, all of which use the Leadtools.Medical.Storage.DataAccessLayer.dll.
For the tutorial we create a My.Medical.Storage.DataAccessLayer.dll which must be registered BEFORE the Leadtools.Medical.Storage.DataAccessLayer.dll is loaded. For this reason, we must create a configuration addin (My.Medical.Storage.Configuration Addin) that registers the custom My.Medical.Storage.DataAccessLayer.dll.
To accomplish this, create an assembly with a class that implements the Leadtools.Dicom.AddIn.Interfaces.IServerConfig interface, which contains a single member – a Configure method. It is the responsibility of the Configure method to register My.Medical.Storage.DataAccessLayer.dll. The code to do this has been previously described in the Registering the Medical Storage Data Access Layer section.
After the My.Medical.Storage.Configuration.dll has been created, copy it to the AddIns folder.
The source code for My.Medical.Storage.Configuration.dll is included in the LEAD installation as a sample project