Can an ActionBlock contain a state?
问题 I'm writing an application that is using TPL dataflow. I'm trying to configure an action block to write to a database. However, I need this action block to perform an initialization step on the first message it receives (note that I must wait for the first message and cannot perform the initialization during the action block creation). Because of this, my action block needs to maintain some sort of state that indicates if its already received the first message. Is it possible for an