Improved DI

This commit is contained in:
tsommer committed 2024-07-30 20:23:29 +02:00
1 parent b74fd644ff
commit 6065728128
1 file changed
+2 -2
@@ -16,10 +16,10 @@ namespace AIStudio.Components.Blocks;
public partial class Workspaces : ComponentBase public partial class Workspaces : ComponentBase
{ {
[Inject] [Inject]
private SettingsManager SettingsManager { get; set; } = null!; private SettingsManager SettingsManager { get; init; } = null!;
[Inject] [Inject]
private IDialogService DialogService { get; set; } = null!; private IDialogService DialogService { get; init; } = null!;
[Inject] [Inject]
private ThreadSafeRandom RNG { get; init; } = null!; private ThreadSafeRandom RNG { get; init; } = null!;