Skip to content

Commit 089a176

Browse files
优化启动内容
1 parent 5aa7cb5 commit 089a176

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Vue.Net/VOL.WebApi/Startup.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using Microsoft.Extensions.FileProviders;
1818
using Microsoft.Extensions.Hosting;
1919
using Microsoft.Extensions.Logging;
20-
using Microsoft.Extensions.PlatformAbstractions;
20+
//using Microsoft.Extensions.PlatformAbstractions;
2121
using Microsoft.IdentityModel.Tokens;
2222
using Microsoft.OpenApi.Models;
2323
using Newtonsoft.Json;
@@ -230,7 +230,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
230230
{
231231
string corsUrls = Configuration["CorsUrls"];
232232

233-
endpoints.MapHub<HomePageMessageHub>("/message").RequireCors(t =>
233+
endpoints.MapHub<HomePageMessageHub>("/message")
234+
.RequireCors(t =>
234235
t.WithOrigins(corsUrls.Split(',')).
235236
AllowAnyMethod().
236237
AllowAnyHeader().

Vue.Net/VOL.WebApi/VOL.WebApi.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<ItemGroup>
2121
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="5.0.1" />
2222
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.0" />
23-
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
2423
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc5" />
2524
</ItemGroup>
2625

Vue.Net/VOL.WebApi/VOL.WebApi.csproj.user

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66
<PropertyGroup>
77
<ActiveDebugProfile>VOL.WebApi</ActiveDebugProfile>
8-
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
8+
<NameOfLastUsedPublishProfile>E:\jxx\Vue.NetCore\Vue.Net\VOL.WebApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
99
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
1010
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
1111
</PropertyGroup>

0 commit comments

Comments
 (0)