From 8b6fac7537676facabf3dcdd7276bdeccae800b8 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 16 Sep 2018 13:11:57 -0400 Subject: [PATCH] Add IDreamDaemonClient.Restart --- .../Components/DreamDaemonClient.cs | 3 +++ .../Components/IDreamDaemonClient.cs | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Client/Components/DreamDaemonClient.cs b/src/Tgstation.Server.Client/Components/DreamDaemonClient.cs index 10f72d0ffe..e077ea142d 100644 --- a/src/Tgstation.Server.Client/Components/DreamDaemonClient.cs +++ b/src/Tgstation.Server.Client/Components/DreamDaemonClient.cs @@ -35,6 +35,9 @@ namespace Tgstation.Server.Client.Components /// public Task Start(CancellationToken cancellationToken) => apiClient.Create(Routes.DreamDaemon, instance.Id, cancellationToken); + /// + public Task Restart(CancellationToken cancellationToken) => apiClient.Patch(Routes.DreamDaemon, instance.Id, cancellationToken); + /// public Task Read(CancellationToken cancellationToken) => apiClient.Read(Routes.DreamDaemon, instance.Id, cancellationToken); diff --git a/src/Tgstation.Server.Client/Components/IDreamDaemonClient.cs b/src/Tgstation.Server.Client/Components/IDreamDaemonClient.cs index 764ddfbc23..7b858cba6b 100644 --- a/src/Tgstation.Server.Client/Components/IDreamDaemonClient.cs +++ b/src/Tgstation.Server.Client/Components/IDreamDaemonClient.cs @@ -20,9 +20,16 @@ namespace Tgstation.Server.Client.Components /// Start /// /// The for the operation - /// A resulting in the information + /// A resulting in the of the running operation Task Start(CancellationToken cancellationToken); + /// + /// Restart + /// + /// The for the operation + /// A resulting in the of the running operation + Task Restart(CancellationToken cancellationToken); + /// /// Shutdown ///