Table of Contents

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

eventAggregator IEventAggregator

The event aggregator instance.

keys PrimaryKeys<T>

The primary keys of the entity.

Type Parameters

T

The 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

eventAggregator IEventAggregator

The event aggregator.

entity T

The entity that was updated.

Type Parameters

T

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