mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
16 lines
353 B
C#
16 lines
353 B
C#
using Components.Interfaces;
|
|
using Data.Models;
|
|
|
|
namespace BlazorServer.Services;
|
|
|
|
public class BlazorServerBlogNotificationService : IBlogNotificationService
|
|
{
|
|
public event Action<BlogPost>? BlogPostChanged;
|
|
|
|
public Task SendNotification(BlogPost post)
|
|
{
|
|
BlogPostChanged?.Invoke(post);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|