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

LuController.cs 602B

1234567891011121314151617181920212223
  1. using System.Collections.Generic;
  2. using Luticate2.Utils.Dbo;
  3. using Microsoft.AspNetCore.Mvc;
  4. using Microsoft.AspNetCore.SignalR.Infrastructure;
  5. namespace Luticate2.Utils.Controllers
  6. {
  7. public abstract class LuController : Controller
  8. {
  9. protected IConnectionManager ConnectionManager { get; set; }
  10. protected IDictionary<object, object> LuItems => HttpContext.GetLuItems();
  11. protected T Handle<T>(LuResult<T> result)
  12. {
  13. if (result)
  14. {
  15. return result.Data;
  16. }
  17. return default(T);//TODO
  18. }
  19. }
  20. }