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
Post a Comment