简体   繁体   English

Asp.Net 样板通知

[英]Asp.Net Boilerplate Notifications

I have Notifications working in a .NET Core web application using the Abp Boilerplate framework.我有使用 Abp Boilerplate 框架在 .NET Core Web 应用程序中工作的通知。 I've also implemented EmailRealTimeNotifier so that after the Push notification is sent, an Email is sent as well.我还实现了 EmailRealTimeNotifier,以便在发送推送通知后,还会发送电子邮件。

I'd like to give Users of the application the ability to choose as a preference, whether they want to receive我想让应用程序的用户能够选择作为偏好,他们是否想要接收

  1. Push Notifications Only仅推送通知
  2. Email Notifications Only仅电子邮件通知
  3. Both Push and Email Notifications推送和电子邮件通知

I figure I can refactor the EmailRealTimeNotifier class used to send Emails with some clever logic hopefully.我想我可以用一些聪明的逻辑重构用于发送电子邮件的 EmailRealTimeNotifier 类。 But I'm stuck on where and or how I would implement code to prevent the Push Notification from firing off.但是我被困在何处以及如何实现代码以防止推送通知触发。

您可以将设置保存在 abp 提供的每个用户设置中,阅读这些设置并基于此发送电子邮件或推送通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM