Ejemplo n.º 1
0
        private void Ticket1283_1()
        {
            if (ticket1283_1_ReceivedAssociateRq == null)
            {
                ThreadManager threadManager = new ThreadManager();

                DicomThread_NUnit.ScpAssociationOnly scpAssociationOnly = new DicomThread_NUnit.ScpAssociationOnly("1.2.840.10008.5.1.4.1.1.7", "1.2.840.10008.1.2.1");

                scpAssociationOnly.Initialize(threadManager);

                Config.SetOptions(scpAssociationOnly, "ticket1283_1", "scp");

                DicomThread_NUnit.ScuAssociationOnly scuAssociationOnly = new DicomThread_NUnit.ScuAssociationOnly("1.2.840.10008.5.1.4.1.1.7", "1.2.840.10008.1.2.1");

                scuAssociationOnly.Initialize(threadManager);

                Config.SetOptions(scuAssociationOnly, "ticket1283_1", "scu");
                scuAssociationOnly.Options.LocalAeTitle  = "CALLINGAETITLE1";
                scuAssociationOnly.Options.RemoteAeTitle = "CALLEDAETITLE1";

                scpAssociationOnly.Start();
                scuAssociationOnly.Start(250);

                scpAssociationOnly.WaitForCompletion();
                scuAssociationOnly.WaitForCompletion();

                ticket1283_1_ReceivedAssociateRq = scpAssociationOnly.Messages.DulMessages[0] as AssociateRq;
            }
        }
Ejemplo n.º 2
0
        private void Ticket1283_1()
        {
            if (ticket1283_1_ReceivedAssociateRq == null)
            {
                ThreadManager threadManager = new ThreadManager();

                DicomThread_NUnit.ScpAssociationOnly scpAssociationOnly = new DicomThread_NUnit.ScpAssociationOnly("1.2.840.10008.5.1.4.1.1.7", "1.2.840.10008.1.2.1");

                scpAssociationOnly.Initialize(threadManager);

                Config.SetOptions(scpAssociationOnly, "ticket1283_1", "scp");

                DicomThread_NUnit.ScuAssociationOnly scuAssociationOnly = new DicomThread_NUnit.ScuAssociationOnly("1.2.840.10008.5.1.4.1.1.7", "1.2.840.10008.1.2.1");

                scuAssociationOnly.Initialize(threadManager);

                Config.SetOptions(scuAssociationOnly, "ticket1283_1", "scu");
                scuAssociationOnly.Options.LocalAeTitle = "CALLINGAETITLE1";
                scuAssociationOnly.Options.RemoteAeTitle = "CALLEDAETITLE1";

                scpAssociationOnly.Start();
                scuAssociationOnly.Start(250);

                scpAssociationOnly.WaitForCompletion();
                scuAssociationOnly.WaitForCompletion();

                ticket1283_1_ReceivedAssociateRq = scpAssociationOnly.Messages.DulMessages[0] as AssociateRq;
            }
        }