0
Jeez路易斯,我試圖復古適應與釤瘟疫席捲傳統的應用程序,並遇到各種各樣的奇怪。所以我對所有奇怪的問題表示歉意。結構圖WhatDoIHave說我擁有它。 ObjectFactory說我不
所以我有這樣的代碼
var whatDoIHave = ObjectFactory.Container.WhatDoIHave();
var validator = ObjectFactory.GetInstance<IValidator<ProfileActivityElement>>();
的我有什麼有這個
IValidator`1<ProfileActivityElement> (IValidator`1<ProfileActivityElement>)
Scoped as: Transient
4b774bc1-b46e-4fc1-95f4-348bb3786dc8
Configured Instance of HSTM.HLC.BusinessLogic.Validators.ProfileActivityElememntValidator, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
29c5ff3e-73bd-44bb-9fc8-5a81fa640499 Configured Instance of HSTM.HLC.BusinessLogic.Validators.ProfileActivityElememntValidator, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
驗證得到這樣
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily HSTM.HLC.BusinessLogic.IValidator`1[[HSTM.HLC.BusinessLogic.HCC.ProfileActivityElement, HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3]], HSTM.HLC.BusinessLogic, Version=13.1.28.895, Culture=neutral, PublicKeyToken=0ecfe41405c30fb3
這是完整的錯誤錯誤,不內部錯誤。也許我只是忽略了一些語法錯誤。 感謝您的幫助, RAIF