Enabled ability to order containers and the ability to insert new containers to their correct order

This commit is contained in:
TheXamlGuy
2024-05-12 18:28:13 +01:00
parent 40671e38b6
commit 77e79a603e
11 changed files with 77 additions and 69 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ using Toolkit.Foundation;
namespace Bitvault;
public class CreateContainerHandler(IContainerComponentFactory componentFactory,
public class CreateContainerHandler(IContainerFactory componentFactory,
IPublisher publisher) :
IHandler<Create<Container>, bool>
{
@@ -19,7 +19,7 @@ public class CreateContainerHandler(IContainerComponentFactory componentFactory,
{
ISecurityKeyFactory keyVaultFactory = host.Services.GetRequiredService<ISecurityKeyFactory>();
IValueStore<SecurityKey> secureKeyStore = host.Services.GetRequiredService<IValueStore<SecurityKey>>();
IContainerFactory containerFactory = host.Services.GetRequiredService<IContainerFactory>();
IContainerStorageFactory containerFactory = host.Services.GetRequiredService<IContainerStorageFactory>();
if (keyVaultFactory.Create(Encoding.UTF8.GetBytes(password)) is SecurityKey key)
{