public LoggingServiceThreadList(ChildProcessTrackerWrapper childProcessTracker, ProcessWrapperFactory processFactory, IJobConfig jobConfig) : base(jobConfig) { _childProcessTracker = childProcessTracker; _processFactory = processFactory; _jobConfig = jobConfig; }
public static StartupConfiguration GetStartupConfiguration(IServerEnvironmentPreparer serverEnvironmentPreparer) { var writer = new Writer(); var childProcessTracker = new ChildProcessTrackerWrapper(); var processFactory = new ProcessWrapperFactory(); return(new StartupConfiguration { ServerEnvironmentPreparer = serverEnvironmentPreparer, IpcClient = new IpcClientImpl(new NamedPipeClientStreamWrapper(".", Guid.NewGuid().ToString(), System.IO.Pipes.PipeDirection.InOut)), AssemblyLoader = new AssemblyLoader(), Directory = new DirectoryWrapper(), ResourceCatalogFactory = new ResourceCatalogFactory(), WebServerConfiguration = new WebServerConfiguration(writer, new FileWrapper()), Writer = writer, StartWebServer = new StartWebServer(writer, WebServerStartup.Start), SecurityIdentityFactory = new SecurityIdentityFactoryForWindows(), QueueWorkerMonitor = new QueueWorkerMonitor(processFactory, new QueueWorkerConfigLoader(), TriggersCatalog.Instance, childProcessTracker), LoggingServiceMonitor = new LoggingServiceMonitorWithRestart(childProcessTracker, processFactory), HangfireServerMonitor = new HangfireServerMonitorWithRestart(childProcessTracker, processFactory), WebSocketPool = new WebSocketPool(), LoggerFactory = new ExecutionLogger.ExecutionLoggerFactory(), SystemInformationHelper = new GetSystemInformationHelper() }); }
public LoggingServiceMonitorWithRestart(ChildProcessTrackerWrapper childProcessTracker, ProcessWrapperFactory processFactory) { _childProcessTracker = childProcessTracker; _processFactory = processFactory; }