What is the lifecycle of an IIS-hosted (http) WCF service?

前端 未结 3 1458
小鲜肉
小鲜肉 2021-02-02 00:44

I have a dependency injection container setup in my application and I\'m thinking that composing the container every time a WCF service request comes in is going to be inefficie

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 01:19

    As you mention that you were trying to integrate WCF service instantiation with a dependency injection container, I'd just like to say that I've had a very positive experience using the Castle WCF Integration Facility to do just that.

    It's specific to the Castle Windsor dependency injection container but with it being open source you can look inside and understand some of the challenges and solutions provided.

提交回复
热议问题