Пример #1
0
        /// <summary>
        /// Set the Associate Abort Parameters for the given DICOM Server within the Acquisition Modality.
        /// </summary>
        /// <param name="fromActorName">Actor Name that makes a connection to this DICOM Server.</param>
        /// <param name="source">Abort Source.</param>
        /// <param name="reason">Abort Reason.</param>
        /// <remarks>The fromActorName type is always the ImageManager at the moment - no other actors connect to the Acquisition
        /// Modality at the moment. The caller does need to supply fromActorName as the Id component is not known by default.</remarks>
        public void SetAssociationAbortParametersForDicomServer(ActorName fromActorName, byte source, byte reason)
        {
            //
            // Get the DICOM server within the acquisition modality that handles the DICOM association from the actor name.
            //
            DicomServer dicomServer = _acquisitionModality.GetDicomServer(fromActorName);

            if (dicomServer != null)
            {
                //
                // Set the abort parameters
                //
                dicomServer.SetAbortParameters(source, reason);
            }
        }