从 AbpZeroModule 覆盖 NotificationStore

Override NotificationStore from AbpZeroModule

我需要覆盖 NotificationStore 的一些方法,所以我创建了自己的 class 扩展 Abp.Notifications.NotificationStore

我应该在哪里告诉框架使用我的实现而不是 Abp 模块零通知存储。

我已经尝试在核心模块中调用 iocManager.register,但 NotificationStore 仍在调用。

阅读 Replacing Built-In Services 上的文档。

// using Abp.Configuration.Startup;

Configuration.ReplaceService<INotificationStore, MyNotificationStore>(DependencyLifeStyle.Transient);