c# - Calling a self-hosted WCF service in windows svc without blocking the UI -


i have wcf service hosted in windows svc. execute in normal way winforms app, making channel etc, , calling method. there's no .svc file on server side.

however, when call method in windows service gui, blocks ui. there way without blocking ui?

thanks

look @ either backgroundworker class, or newer task parallel library stuff. want fire off call service, , describe when answer received, not block ui while waiting answer. in cases, there may nothing ui do while waits answer, such in case of search dialog. until answer comes back, there's nothing else ui can doing. executing search in background means ui thread has been freed. means should still able move , resize window, or possibly switch form in same application while wait. enough reason execute calls in background.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -