9fdf4bad9c
explicitly set string dvars in quotes to allow setting empty dvars allow piping in input from command line (#114) update the distribution for top stats elo prevent game log file rotation from stopping event parsing
27 lines
712 B
C#
27 lines
712 B
C#
using SharedLibraryCore.Interfaces;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
|
|
namespace IW4MAdmin.Application.Factories
|
|
{
|
|
/// <summary>
|
|
/// Implementation of the IParserRegexFactory
|
|
/// </summary>
|
|
public class ParserRegexFactory : IParserRegexFactory
|
|
{
|
|
private readonly IServiceProvider _serviceProvider;
|
|
|
|
/// <inheritdoc/>
|
|
public ParserRegexFactory(IServiceProvider serviceProvider)
|
|
{
|
|
_serviceProvider = serviceProvider;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public ParserRegex CreateParserRegex()
|
|
{
|
|
return new ParserRegex(_serviceProvider.GetService<IParserPatternMatcher>());
|
|
}
|
|
}
|
|
}
|