Files
av-parser/src/AvParser.Core/DependencyInjection/CoreServiceCollectionExtensions.cs
T
Leonid Pershin eb5061ee23 Refactor media source handling and update collection options
- Updated `IMediaSourceCatalog` to support user-added media sources, allowing dynamic editing and management of sources.
- Removed the `UrlListSource` class as its functionality is now integrated into the new catalog structure.
- Enhanced `CollectOptions` to default `RequireProxy` to true, ensuring stricter handling of proxy requirements.
- Improved error handling in `ParseError` to include a `Subject` field for better context on failures.
- Adjusted dependency injection to reflect changes in media source management, removing old source registrations.
- Introduced background proxy checks to ensure a more robust proxy pool management during collection processes.

These changes streamline the media collection process and improve the overall user experience by providing clearer error reporting and more flexible source management.
2026-08-15 14:20:06 +03:00

19 lines
625 B
C#

using Microsoft.Extensions.DependencyInjection;
namespace AvParser.Core.DependencyInjection;
/// <summary>Composition root for the domain layer.</summary>
public static class CoreServiceCollectionExtensions
{
/// <summary>
/// Registers the domain services. Media sources are user-added data now, not registered types,
/// so they are built from the persisted store in the infrastructure layer rather than here.
/// </summary>
public static IServiceCollection AddAvParserCore(this IServiceCollection services)
{
ArgumentNullException.ThrowIfNull(services);
return services;
}
}