WCF Proxy Client taking time to create, any cache or singleton solution for it

后端 未结 2 924
南方客
南方客 2020-12-30 13:15

we have more than dozon of wcf services and being called using TCP binding. There are a lots of calls to same wcf service at various places in code.

AdminServ         


        
2条回答
  •  [愿得一人]
    2020-12-30 14:00

    In my experience, creating/closing the channel on a per call basis adds very little overhead. Take a look at this Stackoverflow question. It's not a Singleton question per se, but related to your issue. Typically you don't want to leave the channel open once you're finished with it.

    I would encourage you to use a reusable ChannelFactory implementation if you're not already and see if you still are having performance problems.

提交回复
热议问题