c# - Passing Additional Parameters in Windsor castle -


is possible pass additional parameters resolving type using windsor ioc? know there way use anonymous args, possible pass in addition other constructor parameters resolved conatiner?

for example, class below:

interface iservice {     void methoda(); }  public class myservice (iproductrespository a, itenderrepository  b, object context) : iservice {         public void methoda()     {     }     .... } 

now want resolve using container.resolve<iservice>(new { id = 1 }). interfaces registerd container.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -