且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WCF服务方法首次调用花费的时间太长

更新时间:2023-11-30 19:31:52

如果是第一次致电,将需要一段时间.这是WCF的冷启动,整个WCF框架都已加载,并且初始握手和建立通道的成本很高. 3.5 SP1中对此进行了改进,请确保在计算机上安装了SP1.

您可以查看此 http://msdn.microsoft.com/en-us/library/aa751883 .aspx [^ ]
If it''s the first call it will take a while as it''s a cold startup for WCF, the entire WCF framework gets loaded and initial handshake and setting up the channels is costly. This have been improved in 3.5 SP1, makes sure that SP1 is installed on the machine.

You can have a look to this http://msdn.microsoft.com/en-us/library/aa751883.aspx[^]