-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Description:
Currently, users can explicitly register their own notification service like this:
builder.Services.AddSingleton<INotificationService, SignalRNotificationService>();The goal of this feature is to provide a more flexible way for users to implement and register their own notification service. Users should have the freedom to implement their own INotificationService and easily register it via a clean and straightforward extension method.
Implementation Plan:
- Allow users to implement their own
INotificationService, enabling them to customize how notifications are given - Provide a simple extension method that allows users to register their custom notification service in the DI container seamlessly.
Example Usage:
-
Custom Notification Service Implementation:
Users can create their own implementation of theINotificationService. -
Registering the Custom Service:
Users can register their custom service in a clean way using an extension method:
builder.Services.AddCustomNotificationService<CustomNotificationService>();This will allow the user to easily integrate their custom logic for sending notifications without modifying core code.
Its only the idea - dont mind implementation