diff --git a/Esiur.ASPNet/Esiur.AspNetCore.Example.csproj b/Esiur.ASPNet/Esiur.AspNetCore.Example.csproj index bf49d68..28f0ea5 100644 --- a/Esiur.ASPNet/Esiur.AspNetCore.Example.csproj +++ b/Esiur.ASPNet/Esiur.AspNetCore.Example.csproj @@ -7,7 +7,7 @@ - + diff --git a/Esiur.ASPNet/Program.cs b/Esiur.ASPNet/Program.cs index 2778b3a..8b3f0e3 100644 --- a/Esiur.ASPNet/Program.cs +++ b/Esiur.ASPNet/Program.cs @@ -14,10 +14,10 @@ var builder = WebApplication.CreateBuilder(args); // Add services to the container. -//builder.Services.AddControllers(); +builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle -//builder.Services.AddEndpointsApiExplorer(); -//builder.Services.AddSwaggerGen(); +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); builder.WebHost.UseUrls("http://localhost:8080"); @@ -32,17 +32,17 @@ app.UseWebSockets(webSocketOptions); // Configure the HTTP request pipeline. -//if (app.Environment.IsDevelopment()) -//{ -// app.UseSwagger(); -// app.UseSwaggerUI(); -//} +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} -//app.UseHttpsRedirection(); +app.UseHttpsRedirection(); -//app.UseAuthorization(); +app.UseAuthorization(); -//app.MapControllers(); +app.MapControllers(); await Warehouse.Put("sys", new MemoryStore()); diff --git a/Esiur.AspNetCore/Esiur.AspNetCore.csproj b/Esiur.AspNetCore/Esiur.AspNetCore.csproj index b17acd2..a235bcb 100644 --- a/Esiur.AspNetCore/Esiur.AspNetCore.csproj +++ b/Esiur.AspNetCore/Esiur.AspNetCore.csproj @@ -7,9 +7,9 @@ - - - + + +