Content Reader/Writer, StreamCopyCommandHandler

This commit is contained in:
2022-06-09 06:59:53 +02:00
parent e947282d7b
commit 6d9bf7ab32
27 changed files with 494 additions and 27 deletions

View File

@@ -5,6 +5,7 @@ using FileTime.App.Core.Services.Persistence;
using FileTime.Core.Command;
using FileTime.Core.Command.CreateContainer;
using FileTime.Core.Command.CreateElement;
using FileTime.Core.CommandHandlers;
using FileTime.Core.ContentAccess;
using FileTime.Core.Services;
using FileTime.Core.Timeline;
@@ -34,10 +35,11 @@ public static class DependencyInjection
return serviceCollection
.AddCoreAppServices()
.AddLocalServices()
.RegisterCommands();
.RegisterCommands()
.AddDefaultCommandHandlers();
}
public static IServiceCollection RegisterCommands(this IServiceCollection serviceCollection)
private static IServiceCollection RegisterCommands(this IServiceCollection serviceCollection)
{
return serviceCollection
.AddTransient<CreateContainerCommand>()

View File

@@ -14,6 +14,7 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\FileTime.Core.CommandHandlers\FileTime.Core.CommandHandlers.csproj" />
<ProjectReference Include="..\..\Core\FileTime.Core.Timeline\FileTime.Core.Timeline.csproj" />
<ProjectReference Include="..\..\Providers\FileTime.Providers.Local\FileTime.Providers.Local.csproj" />
<ProjectReference Include="..\FileTime.App.Core\FileTime.App.Core.csproj" />