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

前端 未结 4 1939
别那么骄傲
别那么骄傲 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:43

    Perhaps you could try pinging the server first, and only ask for the directory info if you get a response?

提交回复
热议问题