NullRealTimeNotifier.cs 600 B

1234567891011121314151617181920
  1. using System.Threading.Tasks;
  2. namespace Abp.Notifications
  3. {
  4. /// <summary>
  5. /// Null pattern implementation of <see cref="IRealTimeNotifier"/>.
  6. /// </summary>
  7. public class NullRealTimeNotifier : IRealTimeNotifier
  8. {
  9. /// <summary>
  10. /// Gets single instance of <see cref="NullRealTimeNotifier"/> class.
  11. /// </summary>
  12. public static NullRealTimeNotifier Instance { get; } = new NullRealTimeNotifier();
  13. public Task SendNotificationsAsync(UserNotification[] userNotifications)
  14. {
  15. return Task.FromResult(0);
  16. }
  17. }
  18. }