我不确定,但在我看来,联合正试图利用价值
ib.transactionviewer.dataaccess.transactionprocessor
作为字符串。
也许你应该写点什么:
<unity>
<typeAliases>
<typeAlias alias="TransactionRepositoryInterface" type="Ib.TransactionViewer.DataAccess.ITransactionRepository, Ib.TransactionViewer.DataAccess" />
<typeAlias alias="TransactionRepositoryToUse" type="Ib.TransactionViewer.DataAccess.TransactionRepository, Ib.TransactionViewer.DataAccess" />
</typeAliases>
<containers>
<container>
<types>
<type type="TransactionRepositoryInterface" mapTo="TransactionRepositoryToUse">
<lifetime type="singleton" />
<typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement, Microsoft.Practices.Unity.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<constructor>
<param name="TransactionProcessor" parameterType="Ib.TransactionViewer.DataAccess.TransactionProcessor, Ib.TransactionViewer.DataAccess">
<dependency />
</param>
</constructor>
</typeConfig>
</type>
</types>
</container>
</containers>
</unity>