开发者

Configuring Unity Container in Web.config

开发者 https://www.devze.com 2023-01-26 14:05 出处:网络
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\">

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

0

精彩评论

暂无评论...
验证码 换一张
取 消