如何实施事件采购&在使用ASP.NET核心身份时,将集成事件发布到活动总线上

发布于 2025-02-06 19:11:25 字数 272 浏览 1 评论 0 原文

在我的干净体系结构项目中,我使用的是ASP.NET核心身份 Usermanager 类用于管理用户。

我将 Usermanager 类的方法抽象为 iusermanager 接口在我的Clean Architecture Core Project的应用程序层中

我无法弄清楚如何通过事件采购并将集成事件发布到活动总线上实现自动化

In my clean architecture project I am using asp.net core identity UserManager class for managing users.

I have abstracted the methods of UserManager class to IUserManager interface inside the Application Layer of my clean architecture core project.

I couldn't figure out how to achieve Automicity with event sourcing and publish integration event to event bus.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昨迟人 2025-02-13 19:11:25

域事件可以使用InotificationHandler(在MediaTR中)消费。
以下是使用Demain事件的干净体系结构模板(由Jason Taylor编写)的链接。

MassTransit系统是一种非常简单的方法,用于生产和消费集成事件的消息

https://masstransit-project.com/usage/usage/usage/producers.html#puplish

httpps://masstransit-project.com/usage/usage/consage/consumers.html#consumers.html#consumer

A Domain event can be consumed using an INotificationHandler(in MediatR).
Below is a link to a clean architecture template (written by Jason Taylor) that uses Demain Event.

https://github.com/jasontaylordev/CleanArchitecture/tree/main/src/Application/TodoItems/EventHandlers

The Masstransit system is a very simple way to produce and consume messages for integration events.

https://masstransit-project.com/usage/producers.html#publish

https://masstransit-project.com/usage/consumers.html#consumer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文