Method PublishEntitySelectedEvent
- Namespace
- Innova.Prism.Infrastructure.Events
- Assembly
- Innova.Prism.Infrastructure.dll
PublishEntitySelectedEvent<T>(IEventAggregator, PrimaryKeys<T>)
Publishes an entity selected event with the specified primary keys.
public static void PublishEntitySelectedEvent<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.
PublishEntitySelectedEvent<T>(IEventAggregator, T)
Publishes an entity selected event using the specified event aggregator.
public static void PublishEntitySelectedEvent<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.
Remarks
This method publishes an entity selected event for the specified entity using the event aggregator. The entity must implement the IEntityWithKey<T> interface.