Remove unecessary abstraction

This commit is contained in:
Jordan Brown
2020-05-08 22:18:54 -04:00
parent af9ead2787
commit f708bb5dc8
5 changed files with 7 additions and 20 deletions
@@ -455,7 +455,13 @@ namespace Tgstation.Server.Host.Components.Deployment
await Task.WhenAll(symATask, symBTask).ConfigureAwait(false);
await chatManager.SendUpdateMessage(String.Format(CultureInfo.InvariantCulture, "Deployment complete! Changes will be applied {0}.", watchdog.DeploymentApplicationTime), cancellationToken).ConfigureAwait(false);
await chatManager.SendUpdateMessage(
String.Format(
CultureInfo.InvariantCulture,
"Deployment complete! Changes will be applied when DreamDaemon {0}.",
watchdog.Running ? "reboots" : "is launched"),
cancellationToken)
.ConfigureAwait(false);
logger.LogDebug("Compile complete!");
}
@@ -23,9 +23,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <inheritdoc />
public sealed override Models.CompileJob ActiveCompileJob => Server?.Dmb.CompileJob;
/// <inheritdoc />
protected override string DeploymentTimeWhileRunning => "immediately";
/// <inheritdoc />
public sealed override RebootState? RebootState => Server?.RebootState;
@@ -21,11 +21,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// </summary>
bool AlphaIsActive { get; }
/// <summary>
/// When new <see cref="Models.CompileJob"/>s will be made active.
/// </summary>
string DeploymentApplicationTime { get; }
/// <summary>
/// The <see cref="CompileJob"/> currently running on the server
/// </summary>
@@ -30,9 +30,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <inheritdoc />
public abstract bool AlphaIsActive { get; }
/// <inheritdoc />
public string DeploymentApplicationTime => Running ? DeploymentTimeWhileRunning : "when DreamDaemon is launched";
/// <inheritdoc />
public abstract Models.CompileJob ActiveCompileJob { get; }
@@ -45,11 +42,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// <inheritdoc />
public abstract RebootState? RebootState { get; }
/// <summary>
/// When deployments happen if the <see cref="IWatchdog"/> is <see cref="Running"/>.
/// </summary>
protected abstract string DeploymentTimeWhileRunning { get; }
/// <summary>
/// <see cref="TaskCompletionSource{TResult}"/> that completes when <see cref="ActiveLaunchParameters"/> are changed and we are <see cref="Running"/>.
/// </summary>
@@ -17,9 +17,6 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// </summary>
sealed class WindowsWatchdog : BasicWatchdog
{
/// <inheritdoc />
protected override string DeploymentTimeWhileRunning => "when DreamDaemon reboots";
/// <summary>
/// The <see cref="IIOManager"/> for the <see cref="WindowsWatchdog"/>.
/// </summary>