/// <summary>
        /// This method is invoked just before the DICOM protocol negotiation
        /// </summary>
        /// <param name="result0">permanent of transient</param>
        /// <param name="source">SCU or SCP</param>
        /// <param name="reason">why this occur,see kdt_managed.IDTAcseObserver.rej_reason_t</param>
        /// <returns>if returns false,the association will be rejected</returns>
        public bool preNegotiate(ref kdt_managed.IDTAcseObserver.rej_result_t result0, ref kdt_managed.IDTAcseObserver.rej_source_t source, ref kdt_managed.IDTAcseObserver.rej_reason_t reason)
        {
            // check the if the called AE is the name of SSCPPara
            string calledAE = m_theStore.AETitle;

            if (calledAE == null)
            {
                calledAE = "DAPClient";
            }

            string callingAE = "*";

            string ca = m_theAe.getCalledAE().Trim();

            if (m_theAe.getCalledAE().Trim() == calledAE || calledAE == "*")
            {
                if (m_theAe.getCallingAE().Trim() == callingAE || callingAE == "*")
                {
                    return(true);
                }
                else
                {
                    reason = kdt_managed.IDTAcseObserver.rej_reason_t.CALLING_AE_TITLE_NOT_RECOGNIZED;
                    _logger.Info("DAPAcseObserver.preNegotiate(): " + "Calling AE " + m_theAe.getCallingAE().Trim() + " is not recognized.");
                }
            }
            else
            {
                reason = kdt_managed.IDTAcseObserver.rej_reason_t.CALLED_AE_TITLE_NOT_RECOGNIZED;
                _logger.Info("DAPAcseObserver.preNegotiate(): " + "Called AE " + m_theAe.getCalledAE().Trim() + " is not recognized.");
            }
            result0 = kdt_managed.IDTAcseObserver.rej_result_t.PERMANENT;
            source  = kdt_managed.IDTAcseObserver.rej_source_t.UL_SERVICE_PROVIDER_PRESENTATION;

            return(false);
        }
 /// <summary>
 /// This method is invoked just after the DICOM protocol negotiation
 /// </summary>
 /// <param name="result">permanent of transient</param>
 /// <param name="source">SCU or SCP</param>
 /// <param name="reason">why this occur,see kdt_managed.IDTAcseObserver.rej_reason_t</param>
 /// <returns>if returns false,the association will be rejected</returns>
 public bool postNegotiate(ref kdt_managed.IDTAcseObserver.rej_result_t result, ref kdt_managed.IDTAcseObserver.rej_source_t source, ref kdt_managed.IDTAcseObserver.rej_reason_t reason)
 {
     return(true);
 }