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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -