Ejemplo n.º 1
0
        /// <summary>
        /// Set the Associate Reject 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="result">Reject Result.</param>
        /// <param name="source">Reject Source.</param>
        /// <param name="reason">Reject 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 SetAssociationRejectParametersForDicomServer(ActorName fromActorName, byte result, 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 reject parameters
                //
                dicomServer.SetRejectParameters(result, source, reason);
            }
        }