private static void SendMessage(string message) { // 取得該抽象別別的具體實作物件,並且執行該物件的方法 var fooIMessage = MyDI.Resolve <IMessage>(); fooIMessage.Write(message); }
private static void SendMessage(string message) { var fooIMessage = MyDI.Resolve <IMessage>(); fooIMessage.Write(message); }