Increasing the timeout value in a WCF service

后端 未结 5 610
半阙折子戏
半阙折子戏 2020-11-27 13:03

How do I increase the default timeout to larger than 1 minute on a WCF service?

5条回答
  •  -上瘾入骨i
    2020-11-27 13:33

    Are you referring to the server side or the client side?

    For a client, you would want to adjust the sendTimeout attribute of a binding element. For a service, you would want to adjust the receiveTimeout attribute of a binding elemnent.

    
      
        
          
            
          
        
      
    
      
        
          
        
    ....
    

    Of course, you have to map your desired endpoint to that particular binding.

提交回复
热议问题