tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
PosixWatchdogFactory.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.Versioning;
3
4using Microsoft.Extensions.Logging;
5using Microsoft.Extensions.Options;
6
18
20{
24 [UnsupportedOSPlatform("windows")]
26 {
37 IServerControl serverControl,
38 ILoggerFactory loggerFactory,
39 IJobManager jobManager,
40 IAsyncDelayer asyncDelayer,
41 IFilesystemLinkFactory linkFactory,
42 IOptions<GeneralConfiguration> generalConfigurationOptions)
43 : base(
44 serverControl,
45 loggerFactory,
46 jobManager,
47 asyncDelayer,
48 linkFactory,
49 generalConfigurationOptions)
50 {
51 }
52
54 public override IWatchdog CreateWatchdog(
55 IChatManager chat,
56 IDmbFactory dmbFactory,
57 ISessionPersistor sessionPersistor,
58 ISessionControllerFactory sessionControllerFactory,
59 IIOManager gameIOManager,
60 IIOManager diagnosticsIOManager,
61 IEventConsumer eventConsumer,
62 IRemoteDeploymentManagerFactory remoteDeploymentManagerFactory,
63 Api.Models.Instance instance,
64 DreamDaemonSettings settings)
65 => new PosixWatchdog(
66 chat,
67 sessionControllerFactory,
68 dmbFactory,
69 sessionPersistor,
73 diagnosticsIOManager,
74 eventConsumer,
75 remoteDeploymentManagerFactory,
76 gameIOManager,
78 LoggerFactory.CreateLogger<PosixWatchdog>(),
79 settings,
80 instance,
82 settings.AutoStart ?? throw new ArgumentNullException(nameof(settings)));
83 }
84}
PosixWatchdogFactory(IServerControl serverControl, ILoggerFactory loggerFactory, IJobManager jobManager, IAsyncDelayer asyncDelayer, IFilesystemLinkFactory linkFactory, IOptions< GeneralConfiguration > generalConfigurationOptions)
Initializes a new instance of the PosixWatchdogFactory class.
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.
A variant of the AdvancedWatchdog that works on POSIX systems.
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.
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.