What is the correct way to pass another component into Eq()?
_container.Register(
Component.For<IDocumentManagementServiceProvider>()
.ImplementedBy<DocumentumServiceProvider>()
.Parameters(Parameter.ForKey("credentials").Eq(?) // <---right here
Solution:
_container.Register(
Component.For<IDocumentManagementServiceProvider>()
.ImplementedBy<DocumentumServiceProvider>()
.ServiceOverrides(
ServiceOverride.ForKey("credentials").Eq("documentum.repository.credentials"))
.DependsOn(Property.ForKey("numberOfTimesToRetryOperation").Eq(2))
.DependsOn(Property.ForKey("millisecondsBetweenRetries").Eq(1000))
.Named("document.management.service.provider"));