Files
hcs/Hcs.WebApp/BackgroundServices/DataParsers/DataParserFactory.cs

17 lines
470 B
C#

using Hcs.Broker;
using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.DataParsers
{
public class DataParserFactory
{
public IDataParser CreateResultGetter(IServiceScope scope, IClient client, Operation operation)
{
return operation.Type switch
{
Operation.OperationType.ParseHousesData_15_7_0_1 => new HousesDataParser_15_7_0_1(client, scope, operation)
};
}
}
}