コード例 #1
0
        private void PrintSCPService_EchoEvent(EchoInfo echo)
        {
            Invoke((MethodInvoker)(() =>
            {
                string strMsg = string.Format("Get echo, CallingAE: {0}, CallingIP: {1}", echo.CallingAETitle, echo.CallingIP);
                statusLabel.Text = strMsg;

                MessageBox.Show(strMsg);
            }));
        }
コード例 #2
0
        public DicomCEchoResponse OnCEchoRequest(DicomCEchoRequest request)
        {
            LogManager.Instance.Info("Received verification request from AE {0} with IP: {1}", CallingAE, CallingIP);

            if (EchoEvent != null)
            {
                EchoInfo echoInfo = new EchoInfo()
                {
                    CallingAETitle = CalledAE, CallingIP = CallingIP
                };
                EchoEvent(echoInfo);
            }

            return(new DicomCEchoResponse(request, DicomStatus.Success));
        }