Import from internal git
This commit is contained in:
22
Generator/Services/PreGenerationService.cs
Normal file
22
Generator/Services/PreGenerationService.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Core.Process;
|
||||
using Core.SpecConfig;
|
||||
using Generator.Repo;
|
||||
|
||||
namespace Generator.Services;
|
||||
|
||||
public class PreGenerationService
|
||||
{
|
||||
|
||||
private readonly PreGenerationRepo _repo;
|
||||
|
||||
public PreGenerationService(PreGenerationRepo repo)
|
||||
{
|
||||
_repo = repo;
|
||||
}
|
||||
|
||||
public GenerationProcess ComputeGeneration(string specPath, GenerationType? generationType, PublishType publishType)
|
||||
{
|
||||
return _repo.GetProcess(specPath, generationType, publishType);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user