Beispiel #1
0
        static void ConfigureObserver()
        {
            Trace.Listeners.Add(new ConsoleTraceListener());

            var observer = new ConsoleObserver();

            SystemObserver.Swap(observer);
            Context.SwapForDebug(s => SystemObserver.Notify(s));
        }
Beispiel #2
0
        static void ConfigureObserver()
        {
            Trace.Listeners.Add(new ConsoleTraceListener());

            SystemObserver.Swap(new Observer());
        }