views:

65

answers:

1

Hi guys, how would I preset a Windsor configuration file parameter with an Enum specified entry such as "EntryType" below?

I currently have this:

<component
      id="test.service" service=".." type=".." lifestyle="transient">
      <parameters>
        <entryType>EntryType.Test</entryType>
      </parameters>
    </component>

Where .. obviously represents the full namespace and assembly.

But receiving this error:

Could not convert from 'EntryType.Test' to 
   Business.Common.Services.Core.TestService+EntryType.
+2  A: 

Written like this, it worked for me:

<component
  id="test.service" service=".." type=".." lifestyle="transient">
  <parameters>
    <entryType>Test</entryType><!-- NOT EntryType.Test -->
  </parameters>
</component>
elder_george
Shamefully easy... Thanks. ;)
GONeale