用法幾乎可以用二個方向來描述: 第一個是先註冊(Register)。第二個是實現實例(Resolve). 舉個簡單的例子: //註冊. builder.RegisterType<TextWriterLog>() ...
確定! 回上一頁