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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -