示例#1
0
 public override void ApplyConfig(DicomConfig config)
 {
     MppsScp mppsScp = new MppsScp();
     mppsScp.AddDefaultMessageHandlers();
     Scp = mppsScp;
     base.ApplyConfig(config);
 }
示例#2
0
        /// <summary>
        /// Apply the Dicom Configuration to the Client,
        /// </summary>
        /// <param name="commonConfig">Common Configuration.</param>
        /// <param name="config">Dicom Configuration.</param>
        public override void ApplyConfig(CommonConfig commonConfig, DicomPeerToPeerConfig config)
        {
            // Instantiate a new MPPS SCP and add the default message handlers
            MppsScp mppsScp = new MppsScp();
            mppsScp.AddDefaultMessageHandlers();

            // update supported transfer syntaxes here
            //mppsScp.ClearTransferSyntaxes();
            //mppsScp.AddTransferSyntax(HliScp.IMPLICIT_VR_LITTLE_ENDIAN);

            // Save the SCP and apply the configuration
            Scp = mppsScp;
            base.ApplyConfig(commonConfig, config);
        }