예제 #1
0
        public bool Verify(string AETitle)
        {
            StoreScu scu = new StoreScu();

            Scp.PeerAddress = System.Net.IPAddress.Parse(IPAddress);
            scu.AETitle     = AETitle;
            return(scu.Verify(Scp));
        }
예제 #2
0
        public string VerifyConnection(PACSConnection server, ClientConnection client)
        {
            AeInfo scpInfo = GetScp(server);

            using (StoreScu scu = new StoreScu())
            {
                DicomScp scp = new DicomScp(IPAddress.Parse(scpInfo.Address), scpInfo.AETitle, scpInfo.Port);

                scu.AETitle = client.AETitle;
                try
                {
                    if (scu.Verify(scp))
                    {
                        return(string.Empty);
                    }
                }
                catch (Exception exception)
                {
                    return(exception.Message);
                }
            }
            return(string.Empty);
        }