Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/commit/6a16bd6045f6e76dca2ac403670367d84e9e442a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
12 additions and
4 deletions
@ -18,7 +18,7 @@ public class CommonAutofacModule : Module
{
builder . RegisterType < DefaultEnvironment > ( ) . As < IEnvironment > ( ) ;
builder . RegisterType < FileUtilities > ( ) . As < IFileUtilities > ( ) ;
builder . RegisterType < RuntimeValidationService > ( ) ;
builder . RegisterType < RuntimeValidationService > ( ) .As < IRuntimeValidationService > ( ) ;
builder . Register ( _ = > new ResourceDataReader ( _rootAssembly ) )
. As < IResourceDataReader > ( ) ;
@ -0,0 +1,8 @@
using FluentValidation.Results ;
namespace Recyclarr.Common.FluentValidation ;
public interface IRuntimeValidationService
{
ValidationResult Validate ( object instance ) ;
}
@ -3,7 +3,7 @@ using FluentValidation.Results;
namespace Recyclarr.Common.FluentValidation ;
public class RuntimeValidationService
public class RuntimeValidationService : IRuntimeValidationService
{
private readonly Dictionary < Type , IValidator > _validators ;
@ -9,9 +9,9 @@ namespace Recyclarr.TrashLib.Config.Parsing;
public class ConfigValidationExecutor
{
private readonly ILogger _log ;
private readonly RuntimeValidationService _validationService ;
private readonly I RuntimeValidationService _validationService ;
public ConfigValidationExecutor ( ILogger log , RuntimeValidationService validationService )
public ConfigValidationExecutor ( ILogger log , I RuntimeValidationService validationService )
{
_log = log ;
_validationService = validationService ;