Holds the URI for the MedicalWebViewer for accessing the web service.
public string MedWebViewerURI { get; set; }
This property is set when the StartApplication()
method is called.
This property can be set by the user.
This property holds the link for the MedicalWebViewer web services.
Usually has the structure of http[s]://[host]//MedicalViewer[version]/#/logon/autologin/[port]/[authentication token]
This property can be used to set the URL for a window hosting this MedicalWebViewer, such as a BrowserForm, which will automatically attempt to log into the MedicalWebViewer.
This sample does the following:
username = 'user'
, password = 'pass'
.using Leadtools;
using Leadtools.Medical.WebViewer.ExternalControl;
private void MedicalWebViewerExternalController_AccessMedWebViewerURI()
{
string applicationName = string.Empty;
string version = string.Empty;
int externalControlPort = 500;
string username = "user";
string password = "pass";
//Set up instance of MedicalWebViewerExternalController object
MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController();
controller.ViewerURL = "http://localhost/MedicalViewer22";
controller.ServiceURL = "http://localhost/MedicalViewerServiceAsp22";
controller.AspService = true;
controller.InitApplication(out applicationName, out version, externalControlPort);
ControllerReturnCode ret = controller.UserLogin(username, password);
if (ret == ControllerReturnCode.Success)
{
string sMsg = string.Format("Connection URI = {0}", controller.MedWebViewerURI);
Console.WriteLine(sMsg);
}
controller.CloseApplication();
controller.Shutdown();
}