Configuring Unity Container in Web.config

杀马特。学长 韩版系。学妹 提交于 2019-12-11 08:33:11

问题


I am trying to configure Unity with a Type that accepts as input a parameter of type Array:

      <type type="IPermissionCheckPlan" mapTo="CompositePlanTeamWorkroomMove" name="MovePlan">
        <constructor>
          <param name="checks" parameterType="IPermissionCheck" >
            <array>
              <dependency name="TWR_Move" />
              <dependency name="TWR_Copy" />
            </array>
          </param>
        </constructor>
      </type>

I am getting an exception when loading the container saying "Unrecognized element 'constructor'".

I am using Unity 2.0.

Regards

来源:https://stackoverflow.com/questions/4268815/configuring-unity-container-in-web-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!