Services Property

Summary
Gets the list of DICOM Servers installed on the machine.
Syntax
C#
C++/CLI
public Dictionary<string, DicomService> Services { get; } 
public: 
property Dictionary<String^,DicomService^>^ Services { 
   Dictionary<String^,DicomService^>^ get(); 
} 

Property Value

The installed services.

Example
C#
using Leadtools; 
using Leadtools.Dicom.AddIn.Common; 
using Leadtools.Dicom.AddIn.Interfaces; 
 
 
 
public void LockCheck() 
{ 
   ServiceAdministrator admin = new ServiceAdministrator(LEAD_VARS.InstallWin32Dir); 
 
   if (!admin.IsEval) 
   { 
      // 
      // If it isn't an eval then we need to set the license file. 
      // 
      if (admin.IsLocked) 
      { 
         //admin.Unlock("Substitute Your Code"); 
         string MY_LICENSE_FILE = "d:\\temp\\TestLic.lic"; 
         string MY_DEVELOPER_KEY = "xyz123abc"; 
 
         RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY); 
         if (admin.IsLocked) 
         { 
            Console.WriteLine("Invalid license"); 
            return; 
         } 
         else 
         { 
            // 
            // Once unlocked initialize the services 
            // 
            admin.Initialize(); 
            foreach (KeyValuePair<string, DicomService> service in admin.Services) 
            { 
               Console.WriteLine(service.Value.Settings.AETitle); 
               foreach (IAddInOptions option in service.Value.AddInOptions) 
               { 
                  Console.WriteLine("Option: {0}", option.Text); 
               } 
            } 
         } 
      } 
      Console.WriteLine("License file valid."); 
   } 
   else 
   { 
      if (admin.IsExpired) 
      { 
         Console.WriteLine("Evaluation has expired"); 
      } 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.2.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Server.Admin Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.