Open Closed

Override TenantAppSerivce #1151


0
falsharif created
  • ABP Framework version: v4.2.2
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): / no

Hi Team, I want to automatically generate a connectionstring when a new tenant is created , however since i dont have the source code for tenantappserivce, how can i override it ? or what is the solution in my case ?

Cheers, Fathi CTO


1 Answer(s)
  • 0
    liangshiwei created
    Support Team

    Hi,

    You don't need to override TenantAppSerivce, you can subscribe to entity creation domain events and handie it.

    https://docs.abp.io/en/abp/latest/Local-Event-Bus#pre-built-events