Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 public SearchController(SAEISContext dbContext)
 {
     this.dbContext = dbContext;
 }
Beispiel #3
0
 public AdminController(SAEISContext dbContext, IWebHostEnvironment env)
 {
     this.dbContext = dbContext;
     dbContext.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.TrackAll;
     this.env = env;
 }
Beispiel #4
0
 public ImageController(SAEISContext dbContext, IWebHostEnvironment environment)
 {
     this.dbContext = dbContext;
     this.environment = environment;
 }
Beispiel #5
0
 public MismatchController(IFileProvider fileProvider, SAEISContext dbContext)
 {
     _fileProvider = fileProvider;
     _dbContext    = dbContext;
 }
Beispiel #6
0
 public ThumbnailController(SAEISContext dbContext, IWebHostEnvironment environment, IMemoryCache memoryCache)
 {
     this.dbContext   = dbContext;
     this.environment = environment;
     this.memoryCache = memoryCache;
 }
Beispiel #7
0
 public SitemapController(SAEISContext dbContext, IWebHostEnvironment env)
 {
     this.dbContext = dbContext;
     this.env       = env;
 }