示例#1
0
 /// <summary>
 /// Gets the log details through the webclient.
 /// </summary>
 /// <param name="selectedLogFile">The selected log file.</param>
 /// <author>Jurie.smit</author>
 /// <date>2013/05/24</date>
 private void GetLogDetails(FilePath selectedLogFile)
 {
     DebugOutput.Clear();
     try
     {
         var debugStates = _debugProvider.GetDebugStates(SelectedServer.Connection.WebServerUri.AbsoluteUri, LogDirectory, selectedLogFile);
         debugStates.ToList().ForEach(s => DebugOutput.Append(s));
     }
     catch (Exception exception)
     {
         ShowError(exception);
     }
 }
        public void OnMessageReceived(object sender, string message)
        {
            if (!Dispatcher.CheckAccess())
            {
                Dispatcher.Invoke(new Action(() => { OnMessageReceived(sender, message); }));
                return;
            }

            Console.WriteLine("JSDBG: " + message);
            DebugOutput.Append(message);
            if (!UpdateWorker.IsBusy)
            {
                UpdateWorker.RunWorkerAsync();
            }
        }