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.

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. }