Implementing OnePerSessionBehavior in NInject

前端 未结 2 658
执笔经年
执笔经年 2021-01-21 14:54

I\'d like to create a OnePerSessionBehavior for NInject (v1.0) and I\'ve mostly got it working. The only issue that remains is how to pass in fresh arguments using .WithArgumen

2条回答
  •  春和景丽
    2021-01-21 15:44

    You're passing a value that's evaluated during the definition of the binding. That's why you get the same value over and over again. Actually from the top of my head I don't have an easy answer to that but I'll definitely think about it as it might be useful for testing purposes for me to.

提交回复
热议问题