i am working on WPF application. In some method i am calling API of dll. That API is not returning anything for large amount of time, because of this my application is getting strucked. I need to wait for 2 seconds at that specific line and should move to next line if it gets strucked. How can I achieve this.?
Thanks.