mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-06 17:58:05 +02:00
17 lines
406 B
C#
17 lines
406 B
C#
using Robust.Server.Interfaces;
|
|
using Robust.Shared;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Robust.Server
|
|
{
|
|
internal sealed class ServerSignalHandler : SignalHandler
|
|
{
|
|
[Dependency] private readonly IBaseServer _baseServer = default!;
|
|
|
|
protected override void OnReceiveTerminationSignal(string signal)
|
|
{
|
|
_baseServer.Shutdown($"{signal} received");
|
|
}
|
|
}
|
|
}
|