wip
This commit is contained in:
parent
cb9d5e332e
commit
baea64229b
9 changed files with 69 additions and 11 deletions
|
@ -1,5 +1,7 @@
|
|||
using Femto.Modules.Media.Data;
|
||||
using Femto.Common.Infrastructure;
|
||||
using Femto.Modules.Media.Data;
|
||||
using Femto.Modules.Media.Infrastructure;
|
||||
using MediatR;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
@ -21,6 +23,11 @@ public static class Startup
|
|||
});
|
||||
services.AddTransient<IStorageProvider>(s => new FilesystemStorageProvider(storageRoot));
|
||||
services.AddMediatR(c => c.RegisterServicesFromAssembly(typeof(Startup).Assembly));
|
||||
|
||||
services.AddTransient(
|
||||
typeof(IPipelineBehavior<,>),
|
||||
typeof(SaveChangesPipelineBehaviour<,>)
|
||||
);
|
||||
});
|
||||
|
||||
var host = hostBuilder.Build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue