Web-Development-with-Blazor.../Chapter12/MyBlog/BlazorServer/Services/BlazorServerBlogNotificationService.cs
2023-02-17 15:28:17 +01:00

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;
}
}