Refactor SQLite Database Provider
- Removed unused classes and files related to SQLite database provider, including SqliteDesignTimeJellyfinDbFactory, ModelBuilderExtensions, PragmaConnectionInterceptor, AssemblyInfo, SqliteDatabaseProvider, DateTimeKindValueConverter. - Updated tests to remove dependencies on removed classes and adjusted mocking for configuration sections. - Added Microsoft.EntityFrameworkCore.Sqlite package reference to test project. - Improved string handling in tests for better consistency and clarity. - Refactored logging methods in JellyfinApplicationFactory for better readability and maintainability.
This commit is contained in:
@@ -12,8 +12,6 @@ using Microsoft.Extensions.Logging.Abstractions;
|
||||
/// <inheritdoc/>
|
||||
public class StartupLogger : IStartupLogger
|
||||
{
|
||||
private readonly StartupLogTopic? _topic;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StartupLogger"/> class.
|
||||
/// </summary>
|
||||
@@ -21,6 +19,7 @@ public class StartupLogger : IStartupLogger
|
||||
public StartupLogger(ILogger logger)
|
||||
{
|
||||
BaseLogger = logger;
|
||||
Topic = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -30,13 +29,13 @@ public class StartupLogger : IStartupLogger
|
||||
/// <param name="topic">The group for this logger.</param>
|
||||
internal StartupLogger(ILogger logger, StartupLogTopic? topic) : this(logger)
|
||||
{
|
||||
_topic = topic;
|
||||
Topic = topic;
|
||||
}
|
||||
|
||||
internal static IStartupLogger Logger { get; set; } = new StartupLogger(NullLogger.Instance);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public StartupLogTopic? Topic => _topic;
|
||||
public StartupLogTopic? Topic { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the underlying base logger.
|
||||
@@ -50,13 +49,13 @@ public class StartupLogger : IStartupLogger
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IStartupLogger With(ILogger logger)
|
||||
public IStartupLogger Attach(ILogger logger)
|
||||
{
|
||||
return new StartupLogger(logger, Topic);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public IStartupLogger<TCategory> With<TCategory>(ILogger logger)
|
||||
public IStartupLogger<TCategory> Attach<TCategory>(ILogger logger)
|
||||
{
|
||||
return new StartupLogger<TCategory>(logger, Topic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user