Improved DI

This commit is contained in:
Thorsten Sommer 2024-07-30 20:23:29 +02:00
parent b74fd644ff
commit 6065728128
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -16,10 +16,10 @@ namespace AIStudio.Components.Blocks;
public partial class Workspaces : ComponentBase
{
[Inject]
private SettingsManager SettingsManager { get; set; } = null!;
private SettingsManager SettingsManager { get; init; } = null!;
[Inject]
private IDialogService DialogService { get; set; } = null!;
private IDialogService DialogService { get; init; } = null!;
[Inject]
private ThreadSafeRandom RNG { get; init; } = null!;