public FileHandler(INameHelper nameHelper, IPdfService pdfService, ILogger logger)
 {
     _nameHelper        = nameHelper;
     _pdfService        = pdfService;
     _logger            = logger;
     _sequenceFileNames = new ConcurrentBag <string>();
     _savingTimer       = new Timer(TimerCallback);
     _fileSystemWatcher = new FileSystemWatcher();
     _fileSystemWatcher.IncludeSubdirectories = false;
 }
Ejemplo n.º 2
0
 public ScaffolderDependencies(
     IPathHelper pathHelper,
     IFileWriter fileWriter,
     INamespaceHelper @namespace,
     INameHelper namer)
 {
     PathHelper = pathHelper;
     FileWriter = fileWriter;
     Namespace  = @namespace;
     Namer      = namer;
 }
 public GeneratorDependencies(
     ITextProvider textProvider,
     INamespaceHelper namespaceHelper,
     INameHelper namer,
     ISchemaConverter schema,
     IPluralizer pluralizer,
     IOpenApiDocument document)
 {
     Namer      = namer;
     Provider   = textProvider;
     Namespace  = namespaceHelper;
     Schema     = schema;
     Pluralizer = pluralizer;
     Document   = document;
 }
 public FileHandlerFactory(INameHelper nameHelper, IPdfService pdfService)
 {
     _nameHelper = nameHelper;
     _pdfService = pdfService;
 }
Ejemplo n.º 5
0
 public PathHelper(INameHelper namer)
 {
     Namer = namer;
 }