CDN
This commit is contained in:
@@ -5,7 +5,11 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
var connectionString = builder.Configuration.GetConnectionString("LearningDB")!;
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddGrpc();
|
||||
builder.Services.AddGrpc(op =>
|
||||
{
|
||||
op.MaxReceiveMessageSize = 200 * 1024 * 1024;
|
||||
op.MaxSendMessageSize = 200 * 1024 * 1024;
|
||||
});
|
||||
builder.Services.Initialize(connectionString);
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
Reference in New Issue
Block a user