static void ConfigureObserver() { Trace.Listeners.Add(new ConsoleTraceListener()); var observer = new ConsoleObserver(); SystemObserver.Swap(observer); Context.SwapForDebug(s => SystemObserver.Notify(s)); }
static void ConfigureObserver() { Trace.Listeners.Add(new ConsoleTraceListener()); SystemObserver.Swap(new Observer()); }