Parallel event handling in C#

后端 未结 2 1192
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 04:48

I’m developing a module that has to handle many events coming from an external system. I’ve to use a third party class providing an event (OnNewMessage) passing some paramet

2条回答
  •  被撕碎了的回忆
    2020-12-20 05:04

    I would use a queue to store the events, and then consume that queue from a bounch of thread from the thread pool.

提交回复
热议问题