tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
WindowsWatchdogFactory.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.Extensions.Logging;
4using Microsoft.Extensions.Options;
5
17
19{
24 {
29
40 IServerControl serverControl,
41 ILoggerFactory loggerFactory,
42 IJobManager jobManager,
43 IAsyncDelayer asyncDelayer,
44 IFilesystemLinkFactory symlinkFactory,
45 IOptions<GeneralConfiguration> generalConfigurationOptions)
46 : base(
47 serverControl,
48 loggerFactory,
49 jobManager,
50 asyncDelayer,
51 generalConfigurationOptions)
52 {
53 LinkFactory = symlinkFactory ?? throw new ArgumentNullException(nameof(symlinkFactory));
54 }
55
57 public override IWatchdog CreateWatchdog(
58 IChatManager chat,
59 IDmbFactory dmbFactory,
60 ISessionPersistor sessionPersistor,
61 ISessionControllerFactory sessionControllerFactory,
62 IIOManager gameIOManager,
63 IIOManager diagnosticsIOManager,
64 IEventConsumer eventConsumer,
65 IRemoteDeploymentManagerFactory remoteDeploymentManagerFactory,
66 Api.Models.Instance instance,
67 DreamDaemonSettings settings)
68 => new WindowsWatchdog(
69 chat,
70 sessionControllerFactory,
71 dmbFactory,
72 sessionPersistor,
76 diagnosticsIOManager,
77 eventConsumer,
78 remoteDeploymentManagerFactory,
79 gameIOManager,
81 LoggerFactory.CreateLogger<WindowsWatchdog>(),
82 settings,
83 instance,
84 settings.AutoStart ?? throw new ArgumentNullException(nameof(settings)));
85 }
86}
IJobManager JobManager
The IJobManager for the WatchdogFactory.
IServerControl ServerControl
The IServerControl for the WatchdogFactory.
ILoggerFactory LoggerFactory
The ILoggerFactory for the WatchdogFactory.
IFilesystemLinkFactory LinkFactory
The IFilesystemLinkFactory for the WindowsWatchdogFactory.
override IWatchdog CreateWatchdog(IChatManager chat, IDmbFactory dmbFactory, ISessionPersistor sessionPersistor, ISessionControllerFactory sessionControllerFactory, IIOManager gameIOManager, IIOManager diagnosticsIOManager, IEventConsumer eventConsumer, IRemoteDeploymentManagerFactory remoteDeploymentManagerFactory, Api.Models.Instance instance, DreamDaemonSettings settings)
Creates a IWatchdog.A new IWatchdog.
WindowsWatchdogFactory(IServerControl serverControl, ILoggerFactory loggerFactory, IJobManager jobManager, IAsyncDelayer asyncDelayer, IFilesystemLinkFactory symlinkFactory, IOptions< GeneralConfiguration > generalConfigurationOptions)
Initializes a new instance of the WindowsWatchdogFactory class.
A variant of the AdvancedWatchdog that works on Windows systems.
For managing connected chat services.
Consumes EventTypes and takes the appropriate actions.
Handles saving and loading ReattachInformation.
Runs and monitors the twin server controllers.
Definition IWatchdog.cs:16
Represents a service that may take an updated Host assembly and run it, stopping the current assembly...
Interface for using filesystems.
Definition IIOManager.cs:13
Manages the runtime of Jobs.