using SharedLibraryCore.Interfaces; using Microsoft.Extensions.DependencyInjection; using System; namespace IW4MAdmin.Application.Factories { /// /// Implementation of the IParserRegexFactory /// public class ParserRegexFactory : IParserRegexFactory { private readonly IServiceProvider _serviceProvider; /// public ParserRegexFactory(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; } /// public ParserRegex CreateParserRegex() { return new ParserRegex(_serviceProvider.GetService()); } } }