UserLogout Method

Summary
Logs out of the MedicalViewer and returns to the Login page.
Syntax
C#
C++/CLI
public ControllerReturnCode UserLogout() 
public: 
ControllerReturnCode UserLogout();  
Example
C#
using Leadtools; 
 
using Leadtools.Medical.WebViewer.ExternalControl; 
 
private void MedicalWebViewerExternalController_UserLogout() 
{ 
   string applicationName; 
   string version; 
   int externalControlPort = 500; 
   const string jonesPatientId = "12341234"; 
 
   string username = "bob"; 
   string password = "bob"; 
 
   string viewerUrl = "http://localhost/MedicalViewer/"; 
 
   MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController(viewerUrl); 
 
   controller.InitApplication(out applicationName, out version, externalControlPort); 
 
   controller.SelectedBrowser = MedicalWebViewerBrowser.GoogleChrome; 
 
   // Login and display a patient, then logout 
   controller.UserLogin(username, password); 
   controller.ShowPatient(jonesPatientId); 
   controller.UserLogout(); 
 
   string sMsg = string.Format("HTML5 Medical Viewer should be now be on the 'Log In' page'"); 
   Console.WriteLine(sMsg); 
 
   controller.CloseApplication(); 
 
   // Shutdown the command queue 
   controller.Shutdown(); 
} 
Requirements

Target Platforms

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

Leadtools.Medical.WebViewer.ExternalControl Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.