Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Generic EventBus Handlers #987


User avatar
0
Hasan created

Hello Team,

I have gone through the document at

<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events">http://www.aspnetboilerplate.com/Pages/ ... ain-Events</a>

Do you have any sample to handle the generic event data classes for entity changes: EntityCreatingEventData<TEntity>, EntityCreatedEventData<TEntity>, EntityUpdatingEventData<TEntity>, EntityUpdatedEventData<TEntity>, EntityDeletingEventData<TEntity> and EntityDeletedEventData<TEntity>. Also, there are EntityChangingEventData<TEntity> and EntityChangedEventData<TEntity> ?

Thanks Again


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    An example: <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/blob/200a5884ede2bc103d299bfbfdd8bde4f3afad06/src/Abp.Zero/MultiTenancy/TenantFeatureCacheItemInvalidator.cs">https://github.com/aspnetboilerplate/mo ... lidator.cs</a>

    This class clears some cache when a TenantFeatureSetting entity is changed (created, updated or deleted).