How To: Prevent Timeout When Inspecting Unavailable Network Share - C#

前端 未结 4 1932
别那么骄傲
别那么骄傲 2020-12-14 03:25

We have some basic C# logic that iterates over a directory and returns the folders and files within. When run against a network share (\\\\server\\share\\folder) that is ina

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 03:46

    Place it on its own thread, if it doesn't come back in a certain amount of time, move on.

提交回复
热议问题