public static async Task LogAsync(SAEISContext dbContext, HttpRequest request, string description = null) { using (SAEONLogs.MethodCall(typeof(RequestLogger))) { try { dbContext.RequestLogs.Add(await CreateRequestLog(request, description)); await dbContext.SaveChangesAsync(); } catch (Exception ex) { SAEONLogs.Exception(ex); } } }
public SearchController(SAEISContext dbContext) { this.dbContext = dbContext; }
public AdminController(SAEISContext dbContext, IWebHostEnvironment env) { this.dbContext = dbContext; dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.TrackAll; this.env = env; }
public ImageController(SAEISContext dbContext, IWebHostEnvironment environment) { this.dbContext = dbContext; this.environment = environment; }
public MismatchController(IFileProvider fileProvider, SAEISContext dbContext) { _fileProvider = fileProvider; _dbContext = dbContext; }
public ThumbnailController(SAEISContext dbContext, IWebHostEnvironment environment, IMemoryCache memoryCache) { this.dbContext = dbContext; this.environment = environment; this.memoryCache = memoryCache; }
public SitemapController(SAEISContext dbContext, IWebHostEnvironment env) { this.dbContext = dbContext; this.env = env; }