コード例 #1
0
        private void DuplicateCNameDetected(object sender, RtpEvents.DuplicateCNameDetectedEventArgs ea)
        {
            if (sender == rtpSession)
            {
                string msg = string.Format("A duplicate CNAME was detected between {0} and {1}.  Connectivity testing terminating.",
                                           ea.IPAddresses[0].ToString(), ea.IPAddresses[1].ToString());

                eventLog.WriteEntry(msg, EventLogEntryType.Error, 0);
                System.Windows.Forms.MessageBox.Show(msg);

                Dispose();
            }
        }
コード例 #2
0
        private void DuplicateCNameDetected(object sender, RtpEvents.DuplicateCNameDetectedEventArgs ea)
        {
            if (sender == rtpSession)
            {
                string msg = string.Format(CultureInfo.CurrentCulture, Strings.DuplicateCnameWasDetected,
                                           ea.IPAddresses[0].ToString(), ea.IPAddresses[1].ToString());

                eventLog.WriteEntry(msg, EventLogEntryType.Error, 0);
                RtlAwareMessageBox.Show(null, msg, string.Empty, MessageBoxButtons.OK, MessageBoxIcon.None,
                                        MessageBoxDefaultButton.Button1, (MessageBoxOptions)0);

                Dispose();
            }
        }