Skip to content

User can register own notification service #25

@wisedev-pstach

Description

@wisedev-pstach

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:

  1. Custom Notification Service Implementation:
    Users can create their own implementation of the INotificationService.

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureNew work being planned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions