Remove unnecesary comments and review settings
This commit is contained in:
parent
cfd1a37fba
commit
3e001b40f0
@ -29,6 +29,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
|
||||
.LongCountAsync();
|
||||
|
||||
var itemsOnPage = await _context.CatalogItems
|
||||
.OrderBy(c=>c.Name)
|
||||
.Skip(pageSize * pageIndex)
|
||||
.Take(pageSize)
|
||||
.ToListAsync();
|
||||
|
@ -17,8 +17,10 @@
|
||||
{
|
||||
var builder = new ConfigurationBuilder()
|
||||
.SetBasePath(env.ContentRootPath)
|
||||
.AddJsonFile($"settings.{env.EnvironmentName}.json", optional: false)
|
||||
.AddEnvironmentVariables();
|
||||
.AddJsonFile($"settings.json", optional: false, reloadOnChange: true)
|
||||
.AddJsonFile($"settings.{env.EnvironmentName}.json", optional: true);
|
||||
|
||||
builder.AddEnvironmentVariables();
|
||||
|
||||
|
||||
Configuration = builder.Build();
|
||||
@ -33,7 +35,8 @@
|
||||
c.UseSqlServer(Configuration["ConnectionString"]);
|
||||
c.ConfigureWarnings(wb =>
|
||||
{
|
||||
wb.Throw(RelationalEventId.QueryClientEvaluationWarning);
|
||||
//By default, in this application, we don't want to have client evaluations
|
||||
wb.Log(RelationalEventId.QueryClientEvaluationWarning);
|
||||
});
|
||||
});
|
||||
|
||||
@ -45,10 +48,10 @@
|
||||
options.DescribeAllEnumsAsStrings();
|
||||
options.SingleApiVersion(new Swashbuckle.Swagger.Model.Info()
|
||||
{
|
||||
Title = "Values API",
|
||||
Title = "Catalog HTTP API",
|
||||
Version = "v1",
|
||||
Description = "An API API With Swagger for RC2",
|
||||
TermsOfService = "None"
|
||||
Description = "The Catalog Service HTTP API",
|
||||
TermsOfService = "Terms Of Service"
|
||||
});
|
||||
});
|
||||
|
||||
@ -59,10 +62,8 @@
|
||||
});
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
|
||||
{
|
||||
|
||||
//Configure logs
|
||||
|
||||
if (env.IsDevelopment())
|
||||
|
@ -47,7 +47,7 @@
|
||||
"wwwroot",
|
||||
"Views",
|
||||
"Areas/**/Views",
|
||||
"settings.Production.json",
|
||||
"settings.json",
|
||||
"web.config",
|
||||
"project.json",
|
||||
"Dockerfile"
|
||||
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"ConnectionString": "Server=tcp:127.0.0.1,1455;Initial Catalog=CatalogDB;User Id=sa;Password=Pass@word",
|
||||
"Logging": {
|
||||
"IncludeScopes": false,
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user