示例#1
0
        public async Task Reload()
        {
            IsBusy = true;

            try
            {
                var logs = await LogHelper.Appenders.First().ReadAllAsync();

                Logs.ReplaceRange(logs);

                var traces = Trace.Listeners.First().GetValues();
                Traces.ReplaceRange(traces);
            }
            finally
            {
                IsBusy = false;
            }
        }