Method PublishEntityCreateEvent
- Namespace
- Innova.Prism.Infrastructure.Events
- Assembly
- Innova.Prism.Infrastructure.dll
PublishEntityCreateEvent<T>(IEventAggregator, PrimaryKeys<T>)
Publishes an entity create event using the specified event aggregator and primary keys.
public static void PublishEntityCreateEvent<T>(this IEventAggregator eventAggregator, PrimaryKeys<T> keys)
Parameters
eventAggregator
IEventAggregatorThe event aggregator.
keys
PrimaryKeys<T>The primary keys of the entity.
Type Parameters
T
The type of the entity.
PublishEntityCreateEvent<T>(IEventAggregator, T)
Publishes an entity create event using the specified event aggregator.
public static void PublishEntityCreateEvent<T>(this IEventAggregator eventAggregator, T entity) where T : class, IEntityWithKey<T>
Parameters
eventAggregator
IEventAggregatorThe event aggregator to use.
entity
TThe entity to publish the event for.
Type Parameters
T
The type of the entity.