Method PublishEntityUpdatedEvent
- Namespace
- Innova.Prism.Infrastructure.Events
- Assembly
- Innova.Prism.Infrastructure.dll
PublishEntityUpdatedEvent<T>(IEventAggregator, PrimaryKeys<T>)
Publishes an entity updated event for the specified entity type and primary keys.
public static void PublishEntityUpdatedEvent<T>(this IEventAggregator eventAggregator, PrimaryKeys<T> keys)
Parameters
eventAggregatorIEventAggregatorThe event aggregator instance.
keysPrimaryKeys<T>The primary keys of the entity.
Type Parameters
TThe type of the entity.
PublishEntityUpdatedEvent<T>(IEventAggregator, T)
Publishes an entity updated event using the specified event aggregator.
public static void PublishEntityUpdatedEvent<T>(this IEventAggregator eventAggregator, T entity) where T : class, IEntityWithKey<T>
Parameters
eventAggregatorIEventAggregatorThe event aggregator.
entityTThe entity that was updated.
Type Parameters
TThe type of the entity.
Remarks
This method publishes an entity updated event using the specified event aggregator. The event aggregator is responsible for notifying all subscribers of the event.