I need to inject object B and C to A where object C is used by B (all objects are created in Autofac) If there will be no needs for B to use C (object C is used for storing parameters) and I could use hardcoded values I could write something like this:
builder.RegisterType<B>().As<IB>().WithParameter("key","value");
But what should I do if parametrs are created through autofac?
builder.RegisterType<B>().As<IB>().WithParameter("key",C.value);