update mediatR
This commit is contained in:
@@ -8,7 +8,8 @@ public static class ConfigureWebServices
|
||||
{
|
||||
public static IServiceCollection AddWebServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddMediatR(typeof(BasketViewModelService).Assembly);
|
||||
services.AddMediatR(cfg =>
|
||||
cfg.RegisterServicesFromAssembly(typeof(BasketViewModelService).Assembly));
|
||||
services.AddScoped<IBasketViewModelService, BasketViewModelService>();
|
||||
services.AddScoped<CatalogViewModelService>();
|
||||
services.AddScoped<ICatalogItemViewModelService, CatalogItemViewModelService>();
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
<PackageReference Include="Ardalis.Specification" />
|
||||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" />
|
||||
<PackageReference Include="MediatR" />
|
||||
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" />
|
||||
<PackageReference Include="BuildBundlerMinifier" Condition="'$(Configuration)'=='Release'" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" />
|
||||
|
||||
Reference in New Issue
Block a user