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
eventAggregatorIEventAggregatorThe event aggregator.
keysPrimaryKeys<T>The primary keys of the entity.
Type Parameters
TThe 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
eventAggregatorIEventAggregatorThe event aggregator to use.
entityTThe entity to publish the event for.
Type Parameters
TThe type of the entity.