Plugins: Reworking ConfigureAspnet to use steps with prorities. Adding a configuration dictionary.

This commit is contained in:
Zoe Roux
2021-08-13 16:36:27 +02:00
parent b67e0a629e
commit d1b3769f4f
15 changed files with 348 additions and 235 deletions
+4
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Kyoo.Controllers;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
@@ -22,6 +23,9 @@ namespace Kyoo.Postgresql
/// <inheritdoc />
public string Description => "A database context for postgresql.";
/// <inheritdoc />
public Dictionary<string, Type> Configuration => new();
/// <inheritdoc />
public bool Enabled => _configuration.GetSelectedDatabase() == "postgres";