c# - Passing parameters to UsingFactoryMethod in Castle Windsor -


How do I get dynamic parameters for a database manager using ?

For example, I want to write something like this:

  container & Lt; IFoo & gt; () for the Registrar (Component.) FactoryMethod (Return DoSomethingAndReturnInstance (paremeter));   

I need parameters that are sent to the runtime, such as:

  container. Resolve & lt; IFoo & gt; (New {parameter = value});   

How can this be done?

CreationContact. Additional parameters have values ​​that you can solve

Comments