示例#1
0
 void WebAddin_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e)
 {
     if (e.Rejected)
     {
         //get some information about the error
     }
 }
示例#2
0
        static void scu_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e)
        {
            DicomConnection scu = sender as DicomConnection;

            if (!e.Rejected)
            {
                Utils.LogEvent(LogType.Information, MessageDirection.Input, Utils.ASSOCIATE_REQUEST_ACCEPTED,
                               DicomCommandType.Undefined, null, scu, null);
            }
            else
            {
                Utils.LogEvent(LogType.Information, MessageDirection.Input, string.Format(Utils.ASSOCIATE_REQUEST_REJECTED, e.Reason),
                               DicomCommandType.Undefined, null, scu, null);
            }
        }
示例#3
0
        void store_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e)
        {
            StoreScu scu = sender as StoreScu;

            if (!e.Rejected)
            {
                LogEvent(LogType.Information, MessageDirection.Input, ASSOCIATE_REQUEST_ACCEPTED,
                         DicomCommandType.Undefined, null, scu, null);
            }
            else
            {
                LogEvent(LogType.Information, MessageDirection.Input, string.Format(ASSOCIATE_REQUEST_REJECTED, e.Reason),
                         DicomCommandType.Undefined, null, scu, null);
            }
        }
示例#4
0
        private void find_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e)
        {
            try
            {
                if (e.Rejected)
                {
                    throw new Leadtools.Dicom.Scu.Common.ClientAssociationException(Constants.Exception.AssociationFailed,
                                                                                    e.Reason);
                }
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.Assert(false, exception.Message);

                throw;
            }
        }
示例#5
0
 void _find_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e)
 {
 }