Is it possible to come over the time out issue for a function call in C#?
Posted
by infant programmer
on Stack Overflow
See other posts from Stack Overflow
or by infant programmer
Published on 2010-05-14T13:03:17Z
Indexed on
2010/05/14
13:24 UTC
Read the original article
Hit count: 227
In my program I call a method
xslTransform.Load(strXmlQueryTransformPath, xslSettings, new XmlUrlResolver());
The problem I am facing is: sometimes this function doesn't execute well within the time.
Sometimes compiler raises the time out issue after a long time of trial.. which inturn causes this part of application to shut. That is what I want to avoid.
So if it exceeds certain time say 10 seconds I need to recall the method. Is it possible to add some code lines adjacent to this, which can meet the requirement?
© Stack Overflow or respective owner