Open Closed

Notify to client on every new entity added into database using SignalR #7683


User avatar
0
imranStem created

I want to use the SignalR the same way the IAuditingStore is working. I want to notify to the client on every new entry is added into the system for specific entity only. I auditing is working for all the entities but notification to the client should be based on specified entities in configuration. Is there any module available to performance this action?

  • ABP Framework version: v8.0.1
  • UI Type: Angular
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I want to notify to the client on every new entry is added into the system for specific entity only.

    You can add an event handler to listen the EntityCreatedEventData

    EntityCreatedEventData<T> is published just after an entity was successfully created.

    https://abp.io/docs/latest/framework/infrastructure/event-bus/local#pre-built-events

Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13