mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Fix warnings with OS restricted classes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Threading;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Tgstation.Server.Host.IO;
|
||||
@@ -8,6 +9,7 @@ namespace Tgstation.Server.Host.Components.Deployment
|
||||
/// <summary>
|
||||
/// A <see cref="IDmbProvider"/> that uses symlinks.
|
||||
/// </summary>
|
||||
[SupportedOSPlatform("windows")]
|
||||
sealed class SymlinkDmbProvider : SwappableDmbProvider
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
/// <summary>
|
||||
/// A variant of the <see cref="AdvancedWatchdog"/> that works on POSIX systems.
|
||||
/// </summary>
|
||||
[UnsupportedOSPlatform("windows")]
|
||||
sealed class PosixWatchdog : AdvancedWatchdog
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
@@ -20,6 +21,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
/// <summary>
|
||||
/// <see cref="IWatchdogFactory"/> for creating <see cref="PosixWatchdog"/>s.
|
||||
/// </summary>
|
||||
[UnsupportedOSPlatform("windows")]
|
||||
sealed class PosixWatchdogFactory : WindowsWatchdogFactory
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Threading;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -19,6 +20,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
/// <summary>
|
||||
/// A variant of the <see cref="AdvancedWatchdog"/> that works on Windows systems.
|
||||
/// </summary>
|
||||
[SupportedOSPlatform("windows")]
|
||||
sealed class WindowsWatchdog : AdvancedWatchdog
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Runtime.Versioning;
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
@@ -20,6 +21,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
/// <summary>
|
||||
/// <see cref="IWatchdogFactory"/> for creating <see cref="AdvancedWatchdog"/>s.
|
||||
/// </summary>
|
||||
[SupportedOSPlatform("windows")]
|
||||
class WindowsWatchdogFactory : WatchdogFactory
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user