Castle windsor - creating and disposing container in WCF services -
WCF is planning to implement Castle Windsor in the layer, which is an ASP.NET project when I installed Castle Windsor , It was said that we only need to make a container once and after using it it has to be settled. So in my scenario it has been killed at this point where I need to make a container in WCF. I initially thought that putting application_start on global.asax.vb and settling it in application_End but app_end will be called when the app pool recycles or iis restart.
The other thing was that the session started in my mind and Session_end. Then the end of the session will only work for Inproc type. Besides this, it can only be received after some time of idle time.
The third option is to call in each method to create an example and make it Do not advise what I know after each method is closed
Can you please suggest that what is the best way to do this.
In advance thank you psi
You usually get your IOC container per life lifetime only Once configured, and it looks perfectly appropriate in I do not see anything wrong with the Application_Start () . Regenerating it for each new session or for each request is most likely just doing unnecessary work; I suspect that this may spoil the display.
Application_Start () /
application_End () approach. If you are afraid that it can leak out resources or the like, then these fears are inappropriate.
Comments
Post a Comment