public LogEntriesController(
     DiveLogContext context,
     IMapper mapper)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #2
0
 public StatsController(
     DiveLogContext context,
     IMemoryCache cache)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _cache   = cache ?? throw new ArgumentNullException(nameof(cache));
 }
Beispiel #3
0
 public BackgroundJobs(
     DiveLogContext context,
     IDiveLogStatHelper diveLogStatHelper)
 {
     _context           = context ?? throw new ArgumentNullException(nameof(context));
     _diveLogStatHelper = diveLogStatHelper ?? throw new ArgumentNullException(nameof(diveLogStatHelper));
 }
Beispiel #4
0
 private void RunDBMigrations(DiveLogContext diveLogContext)
 {
     diveLogContext.Database.Migrate();
 }