public BBSController(IOptions <MapSetting> options, GutsMvcUnitOfWork uf, ILogger <GutsMvcBBS> logger) { _mapSetting = options.Value; _uf = uf; _logger = new GutsMvcLogger(logger, _uf); // 初始化索引 // JiebaLucene.Instance.InitIndex(_uf); }
public static IList <MoBBSItem> GetCurrentList(GutsMvcUnitOfWork uf) { if (_bbsList != null && _bbsList.Count > 0) { return(_bbsList); } FreshBBSList(uf); return(_bbsList); }
public static void FreshBBSList(GutsMvcUnitOfWork uf) { if (uf == null) { throw new ArgumentNullException(nameof(uf)); } _bbsList = uf.BBSRepository.GetAll().AsNoTracking() .Select(x => new MoBBSItem { BBSId = x.Id, BBSName = x.Bbsname, BBSType = ((int)x.Bbstype).ToString() }) .ToList(); }
public UserController(GutsMvcUnitOfWork uf, IMemoryCache cache, ILogger <GutsMvcBBS> logger) { _uf = uf; _cache = cache; _logger = new GutsMvcLogger(logger, uf); }
public MemberController(GutsMvcUnitOfWork uf, IOptions <MapSetting> options, IMemoryCache cache) { _uf = uf; _mapSetting = options.Value; _cache = cache; }
public ChatHub(GutsMvcUnitOfWork uf, ILogger <GutsMvcBBS> logger, int targetUserId) { _uf = uf; _logger = new GutsMvcLogger(logger, uf); _targetUserId = targetUserId; }
public SuperAdminController(IOptions <MapSetting> options, GutsMvcUnitOfWork uf, ILogger <GutsMvcBBS> logger) { _mapSetting = options.Value; _uf = uf; _logger = new GutsMvcLogger(logger, _uf); }