You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
807 B
C#

12 months ago
using Ds.Module.DynamicApi;
using Ds.Module.ResultFilter;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
// <20><><EFBFBD><EFBFBD>SignalR<6C><52><EFBFBD><EFBFBD>
builder.Services.AddSignalR();
builder.Services.AddControllers().AddDynamicWebApi();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
//<2F><><EFBFBD><EFBFBD>SignalR<6C>˵<EFBFBD>
//endpoints.MapHub<ServerMonitorHub>("/serverMonitorHub");
//<2F><EFBFBD><ECB3A3><EFBFBD><EFBFBD><EFBFBD>м<EFBFBD><D0BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
app.UseMiddleware<ExceptionHandlerMiddleware>();
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllers();
app.Run();