You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
862 B
32 lines
862 B
using Application.Domain.Entities;
|
|
using Infrastructure.Events;
|
|
using Microsoft.AspNetCore.SignalR;
|
|
using Platform.Services;
|
|
|
|
namespace Platform.EventHandlers
|
|
{
|
|
public class StatisticEventHandler : BaseEventHandler,
|
|
IEventHander<EntityInserted<Statistic>>,
|
|
IEventHander<EntityUpdated<Statistic>>,
|
|
IEventHander<EntityDeleted<Statistic>>
|
|
{
|
|
public StatisticEventHandler(IHubContext<IoTCenterHub> hub) : base(hub)
|
|
{
|
|
}
|
|
|
|
public void Handle(EntityInserted<Statistic> message)
|
|
{
|
|
this.Notify<Statistic>(message);
|
|
}
|
|
|
|
public void Handle(EntityUpdated<Statistic> message)
|
|
{
|
|
this.Notify<Statistic>(message);
|
|
}
|
|
|
|
public void Handle(EntityDeleted<Statistic> message)
|
|
{
|
|
this.Notify<Statistic>(message);
|
|
}
|
|
}
|
|
} |