Skip to content

Commit 85b8a74

Browse files
committed
Alguns ajustes
1 parent 98dd5e3 commit 85b8a74

File tree

4 files changed

+19
-28
lines changed

4 files changed

+19
-28
lines changed

src/api gateways/JSE.Bff.Compras/Properties/launchSettings.json

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
{
2+
"iisSettings": {
3+
"windowsAuthentication": false,
4+
"anonymousAuthentication": true,
5+
"iisExpress": {
6+
"applicationUrl": "http://localhost:58043",
7+
"sslPort": 44356
8+
}
9+
},
10+
"$schema": "http://json.schemastore.org/launchsettings.json",
211
"profiles": {
312
"IIS - Dev": {
413
"commandName": "IISExpress",
@@ -34,26 +43,6 @@
3443
"ASPNETCORE_ENVIRONMENT": "Development"
3544
},
3645
"applicationUrl": "https://localhost:5001;http://localhost:5000"
37-
},
38-
"Container (Dockerfile)": {
39-
"commandName": "Docker",
40-
"launchBrowser": true,
41-
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
42-
"environmentVariables": {
43-
"ASPNETCORE_HTTPS_PORTS": "8081",
44-
"ASPNETCORE_HTTP_PORTS": "8080"
45-
},
46-
"publishAllPorts": true,
47-
"useSSL": true
48-
}
49-
},
50-
"$schema": "http://json.schemastore.org/launchsettings.json",
51-
"iisSettings": {
52-
"windowsAuthentication": false,
53-
"anonymousAuthentication": true,
54-
"iisExpress": {
55-
"applicationUrl": "http://localhost:58043",
56-
"sslPort": 44356
5746
}
5847
}
5948
}

src/api gateways/JSE.Bff.Compras/Services/CarrinhoService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public CarrinhoService(HttpClient httpClient, IOptions<AppServicesSettings> sett
1414
_httpClient = httpClient;
1515
_httpClient.BaseAddress = new Uri(settings.Value.CarrinhoUrl);
1616
}
17+
1718
public async Task<CarrinhoDTO> ObterCarrinho()
1819
{
1920
var response = await _httpClient.GetAsync("/carrinho/");

src/web/JSE.WebApp.MVC/Extensions/AppSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public class AppSettings
44
{
55
public string AutenticacaoUrl { get; set; }
66
public string CatalogoUrl { get; set; }
7+
public string ClienteUrl { get; set; }
78
public string ComprasBffUrl { get; set; }
89
}
910
}

src/web/JSE.WebApp.MVC/Program.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
var builder = WebApplication.CreateBuilder(args);
44
var configuration = builder.Configuration;
55

6-
builder.Services.AddControllersWithViews();
7-
builder.Services.AddIdentityConfiguration();
8-
builder.Services.AddMvcConfiguration(configuration);
9-
builder.Services.RegisterServices(configuration);
10-
11-
var app = builder.Build();
12-
var environment = app.Environment;
13-
146
configuration
157
.SetBasePath(Directory.GetCurrentDirectory())
168
.AddJsonFile("appsettings.json", false, false)
@@ -19,6 +11,14 @@
1911
.AddEnvironmentVariables()
2012
.AddUserSecrets(typeof(Program).Assembly).Build();
2113

14+
builder.Services.AddControllersWithViews();
15+
builder.Services.AddIdentityConfiguration();
16+
builder.Services.AddMvcConfiguration(configuration);
17+
builder.Services.RegisterServices(configuration);
18+
19+
var app = builder.Build();
20+
var environment = app.Environment;
21+
2222
app.UseMvcConfiguration(environment);
2323

2424
app.Run();

0 commit comments

Comments
 (0)