My.Medical.Storage.Configuration Addin

The LEADTOOLS Storage Server uses an addin-based architecture.  When the DICOM listening service is created, a corresponding folder is with the same name as the listening service is created.  Within this folder there are two sub-folders:

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.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document