Добавление зависимостей (не полностью)
This commit is contained in:
parent
3111e4e109
commit
355f662f43
@ -11,4 +11,9 @@
|
|||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\HotelContracts\HotelContracts.csproj" />
|
||||||
|
<ProjectReference Include="..\HotelDataBaseImplement\HotelDataBaseImplement.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
using HotelContracts.BusinessLogicsContracts;
|
||||||
|
using HotelContracts.StoragesContracts;
|
||||||
|
using HotelDataBaseImplement.Implemets;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi.Models;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
@ -5,12 +8,13 @@ var builder = WebApplication.CreateBuilder(args);
|
|||||||
builder.Logging.SetMinimumLevel(LogLevel.Trace);
|
builder.Logging.SetMinimumLevel(LogLevel.Trace);
|
||||||
builder.Logging.AddLog4Net("log4net.config");
|
builder.Logging.AddLog4Net("log4net.config");
|
||||||
|
|
||||||
/*
|
|
||||||
builder.Services.AddTransient<IClientStorage, ClientStorage>();
|
|
||||||
builder.Services.AddTransient<IOrderStorage, OrderStorage>();
|
|
||||||
builder.Services.AddTransient<IReinforcedStorage, ReinforcedStorage>();
|
|
||||||
builder.Services.AddTransient<IOrderLogic, OrderLogic>();
|
|
||||||
|
|
||||||
|
builder.Services.AddTransient<IHeadwaiterStorage, HeadwaiterStorage>();
|
||||||
|
builder.Services.AddTransient<IDinnerStorage, DinnerStorage>();
|
||||||
|
builder.Services.AddTransient<IRoomStorage, RoomStorage>();
|
||||||
|
builder.Services.AddTransient<IConferenceBookingStorage, ConferenceBookingStorage>();
|
||||||
|
|
||||||
|
/*
|
||||||
builder.Services.AddTransient<IClientLogic, ClientLogic>();
|
builder.Services.AddTransient<IClientLogic, ClientLogic>();
|
||||||
builder.Services.AddTransient<IReinforcedLogic, ReinforcedLogic>();
|
builder.Services.AddTransient<IReinforcedLogic, ReinforcedLogic>();
|
||||||
builder.Services.AddControllers();*/
|
builder.Services.AddControllers();*/
|
||||||
|
Loading…
Reference in New Issue
Block a user