如何使用 PerWcfOperation 生活方式在 Castle Windsor 3.0 中注册组件?我只能找到在代码中注册组件的示例。
这是我的配置:
<castle>
<facilities>
<facility id="wcf"
type="Castle.Facilities.WcfIntegration.WcfFacility, Castle.Facilities.WcfIntegration" />
</facilities>
<components>
<component id="Settings"
service="SomeNamespace.IApplicationSettings, SomeAssembly"
type="SomeOtherNamespace.ApplicationSettings, SomeOtherAssembly"
lifestyle="PerWcfOperation" />
</components>
</castle>
当我尝试按照上面的配置进行操作时,我得到 ConvertException 'Could not convert from 'PerWcfOperation' to Castle.Core.LifestyleType.'