Fix tsconfig, Fix Startup.cs Warning

This commit is contained in:
hydrant
2020-03-02 22:03:20 +01:00
parent 2c978537d9
commit 72a9539c2c
2 changed files with 5 additions and 5 deletions

View File

@@ -16,12 +16,10 @@
}, },
"include": [ "include": [
"**/*", "**/*",
"node_modules/NativeUI/index.ts", "../ReallifeGamemode.Server/Inventory/Items/Cannabis.cs", "../ReallifeGamemode.Server/Business/BoatDealerBusiness.cs" "../ReallifeGamemode.Server/Inventory/Items/Cannabis.cs",
], "../ReallifeGamemode.Server/Business/BoatDealerBusiness.cs"
"files": [
"node_modules/NativeUI/index.ts"
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules"
] ]
} }

View File

@@ -79,7 +79,9 @@ namespace ReallifeGamemode.DataService
string debugToken = null; string debugToken = null;
#if DEBUG #if DEBUG
#pragma warning disable ASP0000 // Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'
debugToken = services.BuildServiceProvider().GetService<JwtTokenGenerator>().GetDebugToken(tokenKey); debugToken = services.BuildServiceProvider().GetService<JwtTokenGenerator>().GetDebugToken(tokenKey);
#pragma warning restore ASP0000 // Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'
#endif #endif
services.AddSwaggerGen(c => services.AddSwaggerGen(c =>