Ejemplo n.º 1
0
        internal static void RaiseDuplicateCNameDetectedEvent(object[] args)
        {
            if (!FireEvent(DuplicateCNameDetected, args))
            {
                DuplicateCNameDetectedEventArgs ea = (DuplicateCNameDetectedEventArgs)args[1];

                string message = string.Format(CultureInfo.CurrentCulture, Strings.DuplicateCNameDetected,
                                               ea.IPAddresses[0].ToString(), ea.IPAddresses[1].ToString());

                eventLog.WriteEntry(message, EventLogEntryType.Warning, (int)RtpEL.ID.DuplicateCNameEvent);
            }
        }
Ejemplo n.º 2
0
        internal static void RaiseDuplicateCNameDetectedEvent(object[] args)
        {
            if (!FireEvent(DuplicateCNameDetected, args))
            {
                DuplicateCNameDetectedEventArgs ea = (DuplicateCNameDetectedEventArgs)args[1];

                string message = string.Format("DuplicateCNameDetectedEvent - " +
                                               " A duplicate of the local CName was detected on" +
                                               " the network between {0} & {1}, RtpListener shutting down",
                                               ea.IPAddresses[0].ToString(), ea.IPAddresses[1].ToString());

                eventLog.WriteEntry(message, EventLogEntryType.Warning, (int)RtpEL.ID.DuplicateCNameEvent);
            }
        }