Nullify ISessionControllerFactory

This commit is contained in:
Jordan Dominion
2023-12-23 12:07:10 -05:00
parent 16d50692fa
commit b81ecda075
@@ -5,8 +5,6 @@ using Tgstation.Server.Api.Models.Internal;
using Tgstation.Server.Host.Components.Deployment;
using Tgstation.Server.Host.Components.Engine;
#nullable disable
namespace Tgstation.Server.Host.Components.Session
{
/// <summary>
@@ -18,14 +16,14 @@ namespace Tgstation.Server.Host.Components.Session
/// Create a <see cref="ISessionController"/> from a freshly launch DreamDaemon instance.
/// </summary>
/// <param name="dmbProvider">The <see cref="IDmbProvider"/> to use.</param>
/// <param name="currentByondLock">The current <see cref="IEngineExecutableLock"/> if any.</param>
/// <param name="currentByondLock">The current <see cref="IEngineExecutableLock"/>. if any.</param>
/// <param name="launchParameters">The <see cref="DreamDaemonLaunchParameters"/> to use. <see cref="DreamDaemonLaunchParameters.SecurityLevel"/> will be updated with the minumum required security level for the launch.</param>
/// <param name="apiValidate">If the <see cref="ISessionController"/> should only validate the DMAPI then exit.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation.</param>
/// <returns>A <see cref="ValueTask{TResult}"/> resulting in a new <see cref="ISessionController"/>.</returns>
ValueTask<ISessionController> LaunchNew(
IDmbProvider dmbProvider,
IEngineExecutableLock currentByondLock,
IEngineExecutableLock? currentByondLock,
DreamDaemonLaunchParameters launchParameters,
bool apiValidate,
CancellationToken cancellationToken);