Commit graph

16 commits

Author SHA1 Message Date
Pat Hartl
e6c12b4809 Refactor script debugging
Instead of providing delegates to a ScriptClient singleton, script execution now relies on dependency injection for debugging. This can be handled by registering an implementation of IScriptDebugger. Multiple script debuggers are supported. These changes required the creation of a PowerShellScriptFactory to handle DI of the service provider to the script.

In the case of LANCommander, "debugging" scripts really just gives an opportunity for the application to break after a script's execution and provide a poor-man's pty. This could be expanded upon in the future to hook directly into PowerShell's debugging functionality, but would require a substantial refactor to script execution.
2025-11-26 01:09:52 -06:00
Pat Hartl
add770b227 Refactor Settings
Settings for the server are now combined with the settings from the SDK. This introduces a large breaking change and a migration should be created. This refactor utilizes .NET Configuration and the Options pattern. This will allow for the overriding of any setting using envionment variables. It also means that Settings.yml can be used to override any .NET configuration. A SettingsProvider implementation was created, and any updating of settings was changed from SettingsService.SaveSettings() to SettingsProvider.Update(s => { ... })
2025-11-16 12:31:25 -06:00
Pat Hartl
7f99fb481c Use Options pattern, 2025-09-26 00:51:02 -05:00
Pat Hartl
d875377f15 Rename SDK services -> clients, implement new configuration, use dependency injection for clients 2025-09-24 20:58:23 -05:00
Pat Hartl
ace43fa09e Revert "Merge branch 'feature/server-process-resource-monitoring'"
This reverts commit 8be2341305, reversing
changes made to cf0fe7c1b6.
2025-07-30 19:29:18 -05:00
Pat Hartl
cddf67a613 Resource stats component, better tracking of child processes, fix serialization bugs 2025-06-14 15:33:10 -05:00
Pat Hartl
425bae360b Abstract server state to support other engines, add Docker container stats 2025-05-26 22:19:53 -05:00
Pat Hartl
fd27010a81 Fix status reporting, use private active memory 2025-05-26 21:59:30 -05:00
Pat Hartl
b3371fcd26 Fix obsolete usage of GetStatus, rework server control as siwtch 2025-05-25 21:11:33 -05:00
Pat Hartl
4d32f574a9 Provide server state instead of just status 2025-05-24 02:34:00 -05:00
Pat Hartl
0d8cfaf423 Working control of Docker containers 2025-03-25 20:48:19 -05:00
Pat Hartl
da33b45fe4 Make config for server engines more generic 2025-03-25 18:07:03 -05:00
Pat Hartl
15d61f684c Redo migrations, fix default container URI, better error handling on startup 2025-03-25 01:09:21 -05:00
Pat Hartl
e86e5d8b44 Use server engines to start/stop servers 2025-03-24 00:19:33 -05:00
Pat Hartl
b75eaaee70 Keep track of container IDs 2025-03-23 21:17:05 -05:00
Pat Hartl
a49d1914df Abstract server control to IServerEngine, basic implementation of DockerServerEngine 2025-03-23 17:30:50 -05:00