예제 #1
0
 public StatusController(ILogger <StatusController> logger, IOptions <APIConfig> config, GPSysContext dbcontext, IHttpContextAccessor accessor)
 {
     _logger    = logger;
     _config    = config.Value;
     _dbcontext = dbcontext;
     _accessor  = accessor;
     _context   = accessor.HttpContext;
 }
예제 #2
0
 public ItemsController(IItemRepository itemRepository, ILogger <ItemsController> logger, IOptions <APIConfig> config, GPSysContext dbcontext, IHttpContextAccessor accessor)
 {
     _itemRepository = itemRepository;
     _logger         = logger;
     _config         = config.Value;
     _dbcontext      = dbcontext;
     _accessor       = accessor;
     _context        = accessor.HttpContext;
 }