/// <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); } }
/// <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); } }