private void RestServer_OnRestServerTrace(object sender, OnRestServerTraceEventArgs e) { OnRestServerTrace?.Invoke(this, e); }
/// <summary> /// Service function that will run the rest servers /// </summary> //protected void ServiceThreadFunction() //{ // while (!m_IsThreadTerminationRequested) // { // foreach (RestServer server in m_RestServerList) // { // if (!server.IsServerRunning) // { // try // { // TraceWriteLine($"Rest Server {server.Name} initializing run routine"); // server.Run(); // TraceWriteLine($"Rest Server {server.Name} leaving run routine"); // } // catch (Exception ex) // { // TraceWriteLine(ex.ToString()); // } // } // } // Thread.Sleep(100); // } //} private void TraceWriteLine(string message) { OnRestServerTrace?.Invoke(this, new OnRestServerTraceEventArgs(null, message)); }