You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Configure gRPC to allow unencrypted HTTP/2 connections (for local development)
15
+
options.EnableDetailedErrors=true;
16
+
});
17
+
builder.Services.AddDtmGrpc(x =>
18
+
{
19
+
x.DtmGrpcUrl="http://localhost:36790";
20
+
});
21
+
builder.Services.AddDtmcli(option =>
22
+
{
23
+
option.DtmUrl="http://localhost:36789";
24
+
});
25
+
26
+
// Add controllers for HTTP API
27
+
builder.Services.AddControllers();
28
+
29
+
varapp=builder.Build();
30
+
31
+
// Configure the HTTP request pipeline.
32
+
app.MapGrpcService<BusiApiService>();
33
+
app.MapControllers();// Map the HTTP API controllers
34
+
app.MapGet("/",()=>"Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
0 commit comments