R
R
Ratatui2017-05-30 16:15:33
WPF
Ratatui, 2017-05-30 16:15:33

The library is not responding, what should I do?

There is a third party library that works with the device. Returns 0 if everything is ok and other values ​​when everything is bad.
Sometimes the library does not return anything, i.e. application hangs.
In which direction is it better to look in order to make it asynchronous and properly timeout "cancel" the request to the library.
WPF, C#, .NET 4.0

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman, 2017-05-30
@yarosroman

Task to help you.

A
Artem, 2017-05-30
@devspec

Look towards https://msdn.microsoft.com/en-us/library/dd321969(...

D
Di-Roll, 2017-05-31
@Di-Roll

Use a Task that will be canceled via a CancellationToken if the timeout is exceeded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question