|
|
@@ -1,10 +1,12 @@ |
|
|
|
using BPA.MQTTClient; |
|
|
|
using BPA.Aliyun.OSS; |
|
|
|
using BPA.MQTTClient; |
|
|
|
using BPA.SAAS.Manage.Application.System.Dtos; |
|
|
|
using BPA.SAAS.Manage.Core; |
|
|
|
using FluentValidation.AspNetCore; |
|
|
|
using Furion; |
|
|
|
using Microsoft.AspNetCore.Builder; |
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.Extensions.Configuration; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using MQTTnet.Client.Connecting; |
|
|
@@ -70,6 +72,11 @@ namespace BPA.SAAS.Manage.Web.Core |
|
|
|
services.AddControllers() |
|
|
|
.AddInjectWithUnifyResult(); |
|
|
|
services.AddMvcFilter<RequestAuditFiltercs>(); |
|
|
|
services.AddAliyunOss(op => |
|
|
|
{ |
|
|
|
App.Configuration.Bind("BPA:Aliyun:Oss", op); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) |
|
|
@@ -78,7 +85,7 @@ namespace BPA.SAAS.Manage.Web.Core |
|
|
|
{ |
|
|
|
app.UseDeveloperExceptionPage(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
app.UseHttpsRedirection(); |
|
|
|
|
|
|
|
app.UseRouting(); |
|
|
|