public PingHostedService(IProgramLog <ILogger> programLog, IExceptionLog <ILogger> errorLog, IToolConfigApplication toolConfigApplication, ICheckTargetRepository repository, ISchedulerFactory schedulerFactory, IIpcServiceHost ipcServiceHost) { _programLog = programLog; _errorLog = errorLog; _toolConfigApplication = toolConfigApplication; this._schedulerFactory = schedulerFactory; _ipcServiceHost = ipcServiceHost; _repository = repository; }
public AlexIpcService() { ServiceCollection = ConfigureServices(new ServiceCollection()); _host = new IpcServiceHostBuilder(ServiceCollection.BuildServiceProvider()) .AddNamedPipeEndpoint <IGuiDebuggerService>(name: "guiDebuggerNamedPipeEndpoint", pipeName: GuiDebuggerConstants.NamedPipeName) .AddTcpEndpoint <IGuiDebuggerService>(name: "guiDebuggerTcpEndpoint", ipEndpoint: IPAddress.Loopback, port: GuiDebuggerConstants.TcpEndpointPort) .Build(); }
public TaskInformation(IHostApplicationLifetime applicationLifetime, IIpcServiceHost host) { _lifetimeAppStopRegistration = applicationLifetime.ApplicationStopping.Register(() => AppStopCts.Cancel()); IpcTask = Task.Run(() => host.RunAsync(AppStopCts.Token)); }