您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

LuCrudWebSocketNotificationsBusiness.cs 1.1KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using Luticate2.Utils.Interfaces;
  3. namespace Luticate2.Utils.Business
  4. {
  5. public class LuCrudWebSocketNotificationsBusiness : ILuCrudWebSocketNotificationsBusiness
  6. {
  7. private readonly ILuWebSocketNotificationsBusiness _luWebSocketNotificationsBusiness;
  8. public LuCrudWebSocketNotificationsBusiness(ILuWebSocketNotificationsBusiness luWebSocketNotificationsBusiness)
  9. {
  10. _luWebSocketNotificationsBusiness = luWebSocketNotificationsBusiness;
  11. }
  12. public void NotifyCreate(Type crudType, object newEntity)
  13. {
  14. _luWebSocketNotificationsBusiness.NotifyCrudCreate(crudType.GetCrudEntityType(), newEntity);
  15. }
  16. public void NotifyUpdate(Type crudType, object oldEntity, object newEntity)
  17. {
  18. _luWebSocketNotificationsBusiness.NotifyCrudUpdate(crudType.GetCrudEntityType(), oldEntity, newEntity);
  19. }
  20. public void NotifyDelete(Type crudType, object oldEntity)
  21. {
  22. _luWebSocketNotificationsBusiness.NotifyCrudDelete(crudType.GetCrudEntityType(), oldEntity);
  23. }
  24. }
  25. }