Why are my message be processed out of order over a single WCF TCP channel (with ConcurrencyMode.Reentrant)?

后端 未结 3 615
猫巷女王i
猫巷女王i 2021-01-05 22:45

The client sends a lot of messages to the server from a single thread, over a single WCF channel.

The client sends the message with BeginMyMethod(x, b) as it does

3条回答
  •  别那么骄傲
    2021-01-05 23:13

    If you are using the generated BeginXXX async-methods, these are executed on a ThreadPool thread. So although you've send the messages in a defined order, nobody guarantees you in which order the ThreadPool executes the requests.

提交回复
热议问题