Exemplo n.º 1
0
        private async void Decompose(string decodedMessage)
        {
            LoggerRemote loggerRemote = null;

            loggerRemote = JsonConvert.DeserializeObject <LoggerRemote>(decodedMessage, new JsonSerializerSettings()
            {
                NullValueHandling = NullValueHandling.Ignore,
            });
            ThreadHelper.Generic.BeginInvoke(() =>
            {
                if (errorLogger == null)
                {
                    errorLogger = new ErrorLog();
                    visualizer.AddVisualizer(errorLogger as IVisualizer);
                }
                errorLogger.AddStatement(loggerRemote);
            });
        }
Exemplo n.º 2
0
 internal void AddStatement(LoggerRemote loggerRemote)
 {
     StackPanelStatements.Text += loggerRemote.Message + "\r\n\r\n";
 }