WCF: Is it safe to create an asynchronous workflow on the server?

I have a WCF service method that I want to perform some action asynchronously (so there is a slight extra delay when returning to the caller). Is it safe to create the System.ComponentModel.BackgroundWorker method inside the method? I would use it to call one of the other service methods, so if there was a way to call one of them asynchronously, it would work.

Is there a BackgroundWorker way, or is there a better way or problem with this in the WCF service?

+3
source share
1 answer

BackgroundWorker . ThreadPool.

when-to-use-thread-pool-in-c , . , , , . , , , .

BackgroundWorker , GUI. , MSDN System.ComponentModel.BackgroundWorker :

BackgroundWorker . , , , (UI) , . , , BackgroundWorker .

, , .

+5

Source: https://habr.com/ru/post/1732254/


All Articles