WCF server-side timeout

前端 未结 4 1953
时光取名叫无心
时光取名叫无心 2020-12-18 11:22

Is there a way to tell a WCF service to response to a request (with or without aborting it\'s processing) after a certain amount of time, even if it didn\'t finish yet, some

4条回答
  •  情书的邮戳
    2020-12-18 12:11

    I don't know why you want to do this - you should probably edit your question to say what you're trying to accomplish.

    If I had to do this, then I would have the web service pass the request off to a separate Windows Service, possibly by using WCF over MSMQ. I would have a timeout on that request. If the request didn't finish in time, I'd simply return a Timeout fault. The actual request would not be impacted.

提交回复
热议问题