2using System.Collections.Generic;
73 this.instance =
instance ??
throw new ArgumentNullException(nameof(
instance));
82 if (this.watchdog !=
null)
83 throw new InvalidOperationException(
"SetWatchdog has already been called!");
84 this.watchdog =
watchdog ??
throw new ArgumentNullException(nameof(
watchdog));
91 throw new InvalidOperationException(
"SetWatchdog has not been called!");
92 return new List<ICommand>
readonly IAssemblyInformationProvider assemblyInformationProvider
The IAssemblyInformationProvider for the CommandFactory.
readonly Models.Instance instance
The Models.Instance for the CommandFactory.
readonly ILatestCompileJobProvider compileJobProvider
The ILatestCompileJobProvider for the CommandFactory.
void SetWatchdog(IWatchdog watchdog)
Set a watchdog for the CommandFactory.
CommandFactory(IAssemblyInformationProvider assemblyInformationProvider, IEngineManager engineManager, IRepositoryManager repositoryManager, IDatabaseContextFactory databaseContextFactory, ILatestCompileJobProvider compileJobProvider, Models.Instance instance)
Initializes a new instance of the CommandFactory class.
readonly IEngineManager engineManager
The IEngineManager for the CommandFactory.
readonly IDatabaseContextFactory databaseContextFactory
The IDatabaseContextFactory for the CommandFactory.
readonly IRepositoryManager repositoryManager
The IRepositoryManager for the CommandFactory.
IWatchdog? watchdog
The IWatchdog for the CommandFactory.
IReadOnlyList< ICommand > GenerateCommands()
Generate builtin ICommands.A IReadOnlyList<T> of ICommands.
For displaying the installed Byond version.
Command for reading the active TestMerges.
For displaying Api.Models.Internal.RevisionInformation.
ICommand to return the IAssemblyInformationProvider.VersionString.
Represents an Api.Models.Instance in the database.
Factory for built in ICommands.
Provides the most recently deployed CompileJob.
For managing the engine installations.
Factory for creating and loading IRepositorys.
Runs and monitors the twin server controllers.
Factory for scoping usage of IDatabaseContexts. Meant for use by Components.