public MainWindow() { InitMEF(); WPFConsoleManager.Show();//开启Console窗口 InitializeComponent(); String s; log.Warn("我是MEF的Log测试"); amimalSound.call("猫叫"); amimalSound2.call("狗叫"); Console.WriteLine("Enter Command:"); while (true) { s = Console.ReadLine(); Console.WriteLine(this.calculator.Value.Calculate(s)); } }
public Subtract() { WPFConsoleManager.Show(); Console.WriteLine("Subtract Created"); }
public MySimpleCalculator() { WPFConsoleManager.Show(); Console.WriteLine("MySimpleCalculator Created"); }
//构造函数此次至是用来做Debug测试 public Add() { WPFConsoleManager.Show(); Console.WriteLine("Add Created"); }
public LoggerPart() { WPFConsoleManager.Show(); Console.WriteLine("LoggerPart Created"); }
public AnimalSound2() { this.log = log; WPFConsoleManager.Show(); Console.WriteLine("AnimalSound2 Created"); }
public AnimalSound() { WPFConsoleManager.Show(); Console.WriteLine("AnimalSound2 Created"); }
public AnimalSound(ILog log) { this.log = log; WPFConsoleManager.Show(); log.Info("AnimalSound Created"); }