2 using System.Collections.Generic;
53 this.application = application ??
throw new ArgumentNullException(nameof(application));
54 this.byondManager = byondManager ??
throw new ArgumentNullException(nameof(byondManager));
55 this.repositoryManager = repositoryManager ??
throw new ArgumentNullException(nameof(repositoryManager));
56 this.databaseContextFactory = databaseContextFactory ??
throw new ArgumentNullException(nameof(databaseContextFactory));
57 this.instance = instance ??
throw new ArgumentNullException(nameof(instance));
66 if (this.watchdog != null)
67 throw new InvalidOperationException(
"SetWatchdog has already been called!");
68 this.watchdog = watchdog ??
throw new ArgumentNullException(nameof(watchdog));
75 throw new InvalidOperationException(
"SetWatchdog has not been called!");
76 return new List<ICommand>
Configures the ASP.NET Core web application
Use server authentication
readonly IByondManager byondManager
The IByondManager for the CommandFactory
Factory for scoping usage of IDatabaseContexts. Meant for use by Components
readonly Models.Instance instance
The Models.Instance for the CommandFactory
ICommand to return the IApplication.VersionString
Factory for built in ICommands
readonly IDatabaseContextFactory databaseContextFactory
The IDatabaseContextFactory for the CommandFactory
Command for reading the active Api.Models.TestMerges
For managing the BYOND installation
IWatchdog watchdog
The IWatchdog for the CommandFactory
CommandFactory(IApplication application, IByondManager byondManager, IRepositoryManager repositoryManager, IDatabaseContextFactory databaseContextFactory, Models.Instance instance)
Construct a CommandFactory
IReadOnlyList< ICommand > GenerateCommands()
Generate builtin ICommands
For displaying Api.Models.Internal.RevisionInformation
For displaying the installed Byond version
Factory for creating and loading IRepositorys
void SetWatchdog(IWatchdog watchdog)
Set a watchdog for the CommandFactory
readonly IApplication application
The IApplication for the CommandFactory
readonly IRepositoryManager repositoryManager
The IRepositoryManager for the CommandFactory
Runs and monitors the twin server controllers