Example #1
0
        void InitWithTraceLogging()
        {
            var startupTimer = Stopwatch.StartNew();
            using (var recorder = new StartUpTraceRecorder())
            {
                InitWithoutTraceLogging();

                Trace.Source.TraceInformation("Total time elapsed: {0}ms", startupTimer.ElapsedMilliseconds);
                StartUpTrace = recorder.TraceOutput;
            }
        }
Example #2
0
        void InitWithTraceLogging()
        {
            var startupTimer = Stopwatch.StartNew();

            using (var recorder = new StartUpTraceRecorder())
            {
                InitWithoutTraceLogging();

                Trace.Source.TraceInformation("Total time elapsed: {0}ms", startupTimer.ElapsedMilliseconds);
                StartUpTrace = recorder.TraceOutput;
            }
        }