locked
Alternative of Timeout.Infinite

    Question

  • Hello,

    What is the alternative for Timeout.Infinite in Windows 8.1 apps c#?

    Thanks in advance.



    • Edited by zee_patel Wednesday, July 16, 2014 1:05 PM
    Wednesday, July 16, 2014 1:00 PM

Answers

  • There is no infinite, so setting a long but finite timeout is clearly a better solution.

    Friday, July 18, 2014 12:03 AM
    Owner

All replies

  • Alternate to do what?

    Please provide complete details on your problem. What is the goal? What code are you using? What are the expected results? How do they differ from the actual results?

    --Rob

    Wednesday, July 16, 2014 3:28 PM
    Owner
  • Hi Rob,

    I want to set HttpClient timeout to infinite, So that it will wait till response.

    Currently I have set Timout as below,but I think infinite would be better solution.

    httpClient.Timeout = TimeSpan.FromDays(1);




    • Edited by zee_patel Thursday, July 17, 2014 5:21 AM
    Thursday, July 17, 2014 5:19 AM
  • There is no infinite, so setting a long but finite timeout is clearly a better solution.

    Friday, July 18, 2014 12:03 AM
    Owner