The constructor for the MedicalWebViewerExternalController class.
This overload of the constructor for the MedicalWebViewerExternalController class initializes the object and sets up a heartbeat timer event.
using Leadtools;
using Leadtools.Medical.WebViewer.ExternalControl;
private void MedicalWebViewerExternalController_ConstructorNoParameters()
{
string applicationName = string.Empty;
string version = string.Empty;
int externalControlPort = 500;
//Set up instance of MedicalWebViewerExternalController object
MedicalWebViewerExternalController controller = new MedicalWebViewerExternalController();
controller.ViewerURL = "http://localhost/MedicalViewer22";
controller.ServiceURL = "http://localhost/MedicalViewerServiceAsp22";
controller.AspService = true;
ControllerReturnCode ret = controller.InitApplication(out applicationName, out version, externalControlPort);
if (ret == ControllerReturnCode.Success)
{
string sMsg = "controller object successfully initialized";
Console.WriteLine(sMsg);
}
controller.CloseApplication();
controller.Shutdown();
}