/// <nodoc /> private FrontEndControllerFactory( FrontEndMode mode, LoggingContext loggingContext, ICommandLineConfiguration configuration, PerformanceCollector collector, bool collectMemoryAsSoonAsPossible, IFrontEndStatistics statistics) { m_mode = mode; CollectMemoryAsSoonAsPossible = collectMemoryAsSoonAsPossible; Configuration = configuration; LoggingContext = loggingContext; Collector = collector; m_statistics = statistics; }
/// <nodoc /> public static FrontEndControllerFactory Create( FrontEndMode mode, LoggingContext loggingContext, ICommandLineConfiguration configuration, PerformanceCollector collector, bool collectMemoryAsSoonAsPossible = true, IFrontEndStatistics statistics = null) { return(new FrontEndControllerFactory( mode, loggingContext, configuration, collector, collectMemoryAsSoonAsPossible, statistics)); }
public Startup(IConfiguration configuration, IWebHostEnvironment environment) { Environment = environment; Configuration = configuration; var frontEndModeString = Configuration.GetValue <string?>(ApplicationConfiguration.FrontEndKey); if (frontEndModeString is null) { _frontEndMode = FrontEndMode.Normal; } else { if (!Enum.TryParse(frontEndModeString, true, out _frontEndMode)) { _frontEndMode = FrontEndMode.Normal; Console.WriteLine("Unknown FrontEnd configuaration value '{0}', fallback to normal.", frontEndModeString); } } }