У меня есть LoggedTextWriter, который я бы хотел добавить в свойство Log класса LinqToSql DataContext.
Мой пользовательский LoggedTextWriter имеет конструктор, который принимает ICustomWriter, но я не знаю, как добавить его в свойство Log.
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();