带有复杂数据的Rebus传奇
我使用Rebus Sagas在.NET Core 6中开发了一个应用程序。我需要我的传奇数据包含一个数组对象,该数组对象一旦处理了一个项目,以便系统可以知道何时处理批处理中的所有项目。我可以使用什么结构来持有该信息,或者是什么是组织该信息的最佳方法。
I am developing a Application in .net core 6 using Rebus Sagas. I need my Saga Data to contain an array objects that will be removed from the list once an item is processed so that the system can know when all the items in the batch has been processed. What structure can I use to hold that information or what is the best way to organization that information.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经了解到,萨加达塔(Sagadata)一直持续存在,因此该结构中的任何对象都会在任何修改时序列化并保存到数据库中,以便您可以将Isagedata中的任何结构放在可以序列化和持久化的Isagedata中。
这解决了问题。
I have come to an understanding that SagaData is persisted as a whole so any object in that structure will be serialized and saved to the database any time it is modified so you can put any structure in the ISageData that can be serialized and persisted.
This Solves the Problem.