The problem was the dead end of the WCF service. The problem is similar to this
In the service that processed the messages, incoming messages should have been added to the user interface stream in the collection as follows.
Action action = new Action(() => { lock (_messagesLock) { _messages.Remove(message); } }); _dispatcher.Invoke(DispatcherPriority.Normal, action);
Change
_dispatcher.Invoke(DispatcherPriority.Normal, action);
To
_dispatcher.BeginInvoke(DispatcherPriority.Normal, action);
Solved a problem.
Ender
source share