【问题标题】:How To Implement Event Sourcing & Publish Integration Event To Event Bus While Using Asp.Net Core Identity如何在使用 Asp.Net Core Identity 时实现事件溯源并将集成事件发布到事件总线
【发布时间】:2022-08-06 16:34:41
【问题描述】:

在我的干净架构项目中,我使用的是 asp.net 核心身份用户管理器用于管理用户的类。

我已经抽象了方法用户管理器上课用户管理器里面的界面应用层我的干净架构核心项目。

我无法弄清楚如何实现自发性使用事件源并将集成事件发布到事件总线。

    标签: asp.net-core event-sourcing asp.net-core-identity clean-architecture event-bus


    【解决方案1】:

    一个领域事件可以使用 INotificationHandler(在 MediatR 中)来使用。 下面是一个使用 Demain Event 的干净架构模板(由 Jason Taylor 编写)的链接。

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

    Masstransit 系统是一种非常简单的方式来为整合事件.

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-13
      • 1970-01-01
      • 1970-01-01
      • 2022-04-16
      • 1970-01-01
      • 2014-04-23
      • 2022-10-23
      相关资源
      最近更新 更多