Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

How to blocking thread with Console.ReadLine() in WPF application? #367

Closed fanmmy closed 6 years ago

fanmmy commented 6 years ago

dotNetty's examples are Console Application.There is no problem when using Console.ReadLine() blocking the thread.

I want to add dotNetty to a WPF application as a TCP server,but it just execute to end when I debug using breakpoint.

nayato commented 6 years ago

The question is along the lines of "how do I prevent my WPF application from exiting" which has nothing to do with DotNetty really.