In my program, I call a method
xslTransform.Load(strXmlQueryTransformPath, xslSettings, new XmlUrlResolver());
The problem I encountered: sometimes this function does not perform well in time.
Sometimes the compiler raises the timeout issue after a long trial. Which forces this part of the application to close. I want to avoid that.
So, if it exceeds a certain time, say 10 seconds, I need to call the method. Can I add some lines of code next to it that may meet the requirements?
source share