コード例 #1
0
ファイル: ReflectorMgr.cs プロジェクト: cucacutexice/AIGA
        /// <summary>
        /// Starts three independent threads who perform reflector server's tasks.
        /// </summary>
        public void StartReflector()
        {
            try
            {
                pC = new ReflectorPC("Reflector");

                sockets.InitAll(enabledTrafficTypes);
                regServer.StartThreads();
                UMforwarder.StartThreads();
                MUforwarder.StartThreads();

                isRunning = true;

                eventLog.WriteEntry("ReflectorService started", EventLogEntryType.Information,
                                    (int)ReflectorEventLog.ID.ServiceStarted);
            }
            catch (Exception e)
            {
                eventLog.WriteEntry("ReflectorService starting exception" + e.ToString(), EventLogEntryType.Error,
                                    (int)ReflectorEventLog.ID.ThreadStartingException);
            }
        }
コード例 #2
0
        /// <summary>
        /// Starts three independent threads who perform reflector server's tasks.
        /// </summary>
        public void StartReflector()
        {
            try
            {
                pC = new ReflectorPC("Reflector");

                sockets.InitAll(enabledTrafficTypes);

                UMforwarder.StartThreads();
                MUforwarder.StartThreads();

                isRunning = true;

                eventLog.WriteEntry(Strings.ReflectorServiceStarted, EventLogEntryType.Information,
                                    (int)ReflectorEventLog.ID.ServiceStarted);
            }
            catch (Exception e)
            {
                eventLog.WriteEntry(string.Format(CultureInfo.CurrentCulture,
                                                  Strings.ReflectorServiceStartingException, e.ToString()), EventLogEntryType.Error,
                                    (int)ReflectorEventLog.ID.ThreadStartingException);
            }
        }