Given this legacy XML configuration for Castle Windsor:
> <parameters>
> <AdditionalMessage>#{message}</AdditionalMessage>
> <Files>#{files}</Files>
> <downloaders>
> <array>
> <item>${HttpFileDownloader}</item>
> <item>${HttpsFileDownloader}</item>
> <item>${FtpFileDownloader}</item>
> <item>${FileSystemFileDownloader}</item>
> </array>
> </downloaders>
> <?if DEBUG?>
> <scraper>${BenchmarkingTitleScraperDecorator}</scraper>
> <?else?>
> <scraper>${RegexTitleScraper}</scraper>
> <?end?> </parameters>
How would one do this using IWindsorInstaller? I have this so far, not sure if I'm on the correct track:
container.Register(Component
.For<HtmlTitleRetriever>()
.Named("HtmlTitleRetriever")
.DependsOn(Property.ForKey("AdditionalMessage").Eq("#{message}"))
.DependsOn(Property.ForKey("Files").Eq("#{files}"))
.DependsOn(Property.ForKey("Files").Eq("#{files}"))
.DependsOn(Property.ForKey("downloaders").Is<IFileDownloader>())
);