I have a LoggedTextWriter that I'd like to inject in to the Log property of the LinqToSql DataContext class.
My custom LoggedTextWriter has a constructor that takes ICustomWriter, but I don't know how to inject it in to the Log property.
Bind<DataContext>()
.ToSelf()
.InTransientScope()
.WithConstructorArgument("connection", @"Data Source=localhost\sqlexpress2008;Initial Catalog=MyDB;Integrated Security=True")
.WithPropertyValue("ObjectTrackingEnabled", true)
.WithPropertyValue("Log", **<HowDoIGetAnInstanceOfLoggedTextWriter>**);
Bind<LoggedTextWriter>().ToSelf().InTransientScope();
Bind<ICustomWriter>().To<MyCustomWriter>().InTransientScope();