Skip to content

Commit 7688a62

Browse files
committed
tmp
1 parent 24aff9b commit 7688a62

File tree

10 files changed

+37
-16
lines changed

10 files changed

+37
-16
lines changed

src/Genocs.Core.Demo.WebApi/appsettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
"ConnectionString": "mongodb://localhost",
3434
"Database": "demo"
3535
},
36-
"MongoDb": {
36+
"mongodb": {
3737
"ConnectionString": "mongodb://localhost",
38-
"Database": "demo"
38+
"Database": "demo",
39+
"enableTracing": true
3940
},
4041
"jwt": {
4142
"ValidIssuer": "http://localhost/Auth",

src/Genocs.Core.Demo.Worker/appsettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"ConnectionString": "Endpoint=sb://xxx.servicebus.windows.net/;SharedAccessKeyName=RMQ-xxxx;SharedAccessKey=xxxx",
2424
"QueueName": "queue-name"
2525
},
26-
"MongoDb": {
26+
"mongodb": {
2727
"ConnectionString": "mongodb://localhost",
2828
"Database": "demo",
29-
"EnableTracing": "true"
29+
"enableTracing": true
3030
},
3131
"Monitoring": {
3232
"Jaeger": "localhost"

src/Genocs.HTTP/Options/HttpClientSettings.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
namespace Genocs.HTTP.Options;
22

3+
/// <summary>
4+
/// The HttpClientSettings options class.
5+
/// </summary>
36
public class HttpClientSettings
47
{
5-
public string Type { get; set; }
8+
/// <summary>
9+
/// It defines if set consul as service discovery or fabio as load balancer.
10+
/// Allowed values are: consul, fabio
11+
/// </summary>
12+
public string? Type { get; set; }
13+
14+
/// <summary>
15+
/// It defines the number of retries for each request.
16+
/// </summary>
617
public int Retries { get; set; }
18+
19+
/// <summary>
20+
/// It defines the list of services to be registered.
21+
/// </summary>
722
public IDictionary<string, string> Services { get; set; }
823
public RequestMaskingSettings RequestMasking { get; set; }
924
public bool RemoveCharsetFromContentType { get; set; }

src/Genocs.Persistence.MongoDb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Please check the GitHub repository getting more info.
2323
Following is about how to setup **MongoDb**
2424

2525
``` json
26-
"MongoDb": {
26+
"mongodb": {
2727
"ConnectionString": "mongodb://localhost",
2828
"Database": "demo_database",
2929
"EnableTracing": false

src/apps/api-gateway/Genocs.APIGateway/appsettings.Docker.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"enabled": true
3737
},
3838
"mongodb": {
39-
"connectionString": "mongodb://mongodb:27017"
39+
"connectionString": "mongodb://mongodb:27017",
40+
"enableTracing": true
4041
},
4142
"redis": {
4243
"connectionString": "redis"

src/apps/identity/Genocs.Identities.WebApi/appsettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
}
99
},
1010
"AllowedHosts": "*",
11-
"MongoDb": {
11+
"mongodb": {
1212
"connectionString": "mongodb://localhost:27017",
1313
"database": "genocs-identity-service",
14-
"seed": false
14+
"seed": false,
15+
"enableTracing": true
1516
},
1617
"Monitoring": {
1718
"Jaeger": "localhost"

src/apps/orders/Genocs.Orders.WebApi/appsettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@
6666
"env": "local",
6767
"interval": 5
6868
},
69-
"mongoDb": {
69+
"mongodb": {
7070
"connectionString": "mongodb://localhost:27017",
7171
"database": "orders-service",
72-
"seed": false
72+
"seed": false,
73+
"enableTracing": true
7374
},
7475
"prometheus": {
7576
"enabled": false

src/apps/products/Genocs.Products.WebApi/Genocs.Products.WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<UserSecretsId>__genocs</UserSecretsId>
7+
<UserSecretsId>genocs</UserSecretsId>
88
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
99
<DockerfileContext>..\..</DockerfileContext>
1010
</PropertyGroup>

src/apps/products/Genocs.Products.WebApi/appsettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@
6565
"env": "local",
6666
"interval": 5
6767
},
68-
"mongoDb": {
68+
"mongodb": {
6969
"connectionString": "mongodb://localhost:27017",
7070
"database": "products-service",
71-
"seed": false
71+
"seed": false,
72+
"enableTracing" : true
7273
},
7374
"prometheus": {
7475
"enabled": false

src/apps/signalr/Genocs.SignalR.WebApi/appsettings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@
9595
"env": "local",
9696
"interval": 5
9797
},
98-
"mongoDb": {
98+
"mongodb": {
9999
"connectionString": "mongodb://localhost:27017",
100100
"database": "orders-service",
101-
"seed": false
101+
"seed": false,
102+
"enableTracing": true
102103
},
103104
"prometheus": {
104105
"enabled": false

0 commit comments

Comments
 (0)