public CaptionsResourceGenerator(
     IPluginsContainer<ICaptionsResourceGeneratorPlugin> plugins,
     CaptionsInitialCodePlugin initialCodePlugin,
     ICodeGenerator codeGenerator,
     IAssemblyGenerator assemblyGenerator,
     ILogProvider logProvider)
 {
     _plugins = plugins;
     _initialCodePlugin = initialCodePlugin;
     _codeGenerator = codeGenerator;
     _assemblyGenerator = assemblyGenerator;
     _logger = logProvider.GetLogger("CaptionsResourceGenerator");
     _performanceLogger = logProvider.GetLogger("Performance");
 }
Ejemplo n.º 2
0
 public CaptionsResourceGenerator(
     IPluginsContainer <ICaptionsResourceGeneratorPlugin> plugins,
     CaptionsInitialCodePlugin initialCodePlugin,
     ICodeGenerator codeGenerator,
     ILogProvider logProvider,
     RhetosBuildEnvironment rhetosBuildEnvironment,
     FilesUtility filesUtility,
     MvcModelGeneratorOptions options)
 {
     _plugins                = plugins;
     _initialCodePlugin      = initialCodePlugin;
     _codeGenerator          = codeGenerator;
     _logger                 = logProvider.GetLogger("CaptionsResourceGenerator");
     _performanceLogger      = logProvider.GetLogger($"Performance.{nameof(CaptionsResourceGenerator)}");
     _rhetosBuildEnvironment = rhetosBuildEnvironment;
     _options                = options;
     _cacheUtility           = new CacheUtility(typeof(CaptionsResourceGenerator), rhetosBuildEnvironment, filesUtility);
 }