阅读背景:

为了捕获SQLException和重试,什么是良好的c#编码风格?

来源:互联网 

I have a method that calls a SQLServer function to perform a free text search against a table. That function will occasionally on the first call result in a SQLException: "Word breaking timed out for the full-text query string". So typically I want to retry that request because it will succeed on subsequent requests. What is good style for structuring the retry logic. At the moment I have the following:I have a method that calls a SQLServer function




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: