Decompress command

This commit is contained in:
2023-08-22 13:24:52 +02:00
parent 506636789c
commit 5905f62d66
6 changed files with 207 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ public class StartupHandler : IStartupHandler
public StartupHandler(IIdentifiableUserCommandService identifiableUserCommandService)
{
identifiableUserCommandService.AddIdentifiableUserCommand(CompressUserCommand.Instance);
identifiableUserCommandService.AddIdentifiableUserCommand(DecompressUserCommand.Instance);
}
public Task InitAsync() => Task.CompletedTask;
}
@@ -18,6 +19,7 @@ public static class Startup
{
services.AddSingleton<IStartupHandler, StartupHandler>();
services.AddSingleton<CompressCommandFactory>();
services.AddSingleton<DecompressCommandFactory>();
services.AddSingleton<IUserCommandHandler, CompressionUserCommandHandler>();
return services;
}