File tree Expand file tree Collapse file tree 7 files changed +26
-37
lines changed
Expand file tree Collapse file tree 7 files changed +26
-37
lines changed Original file line number Diff line number Diff line change 55 <UserSecretsId >407b1e1a-5108-48b6-bb48-4990a0804269</UserSecretsId >
66 </PropertyGroup >
77 <ItemGroup >
8- <PackageReference Include =" Ben.BlockingDetector" Version =" 0.0.4" />
98 <PackageReference Include =" Microsoft.AspNetCore.Http.Extensions" Version =" 2.3.0" />
109 <PackageReference Include =" Microsoft.IdentityModel.JsonWebTokens" Version =" 8.14.0" />
1110 <PackageReference Include =" System.IdentityModel.Tokens.Jwt" Version =" 8.14.0" />
Original file line number Diff line number Diff line change 1- using Ben . Diagnostics ;
21using Microsoft . AspNetCore . Builder ;
32using Microsoft . AspNetCore . Hosting ;
43using Microsoft . Extensions . Configuration ;
@@ -48,10 +47,6 @@ public void ConfigureServices(IServiceCollection services)
4847 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
4948 public void Configure ( IApplicationBuilder app , IWebHostEnvironment env )
5049 {
51- #if DEBUG
52- app . UseBlockingDetection ( ) ;
53- #endif
54-
5550 if ( env . IsDevelopment ( ) )
5651 {
5752 app . UseDeveloperExceptionPage ( ) ;
Original file line number Diff line number Diff line change 55 <handlers >
66 <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
77 </handlers >
8- <aspNetCore processPath =" dotnet" arguments =" OCM.API.Web.dll" stdoutLogEnabled =" true " hostingModel =" inprocess" >
8+ <aspNetCore processPath =" dotnet" arguments =" OCM.API.Web.dll" stdoutLogEnabled =" false " hostingModel =" inprocess" >
99 </aspNetCore >
1010 <httpCompression >
1111 <dynamicTypes >
Original file line number Diff line number Diff line change 1919
2020
2121 <ItemGroup >
22- < PackageReference Include = " Ben.BlockingDetector " Version = " 0.0.4 " />
22+
2323 <PackageReference Include =" Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version =" 9.0.8" />
2424 <PackageReference Include =" Microsoft.Extensions.Caching.SqlServer" Version =" 9.0.8" />
25- <PackageReference Include =" Microsoft.TypeScript.MSBuild" Version =" 5.9.2" >
26- <PrivateAssets >all</PrivateAssets >
27- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
28- </PackageReference >
29- <PackageReference Include =" Microsoft.VisualStudio.SlowCheetah" Version =" 4.0.50" >
30- <PrivateAssets >all</PrivateAssets >
31- <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
32- </PackageReference >
25+
3326 </ItemGroup >
3427
3528 <ItemGroup >
Original file line number Diff line number Diff line change 1- using Ben . Diagnostics ;
21using Microsoft . AspNetCore . Authorization ;
32using Microsoft . AspNetCore . Builder ;
43using Microsoft . AspNetCore . DataProtection ;
@@ -22,7 +21,14 @@ public Startup(IConfiguration configuration)
2221 var settings = new Core . Settings . CoreSettings ( ) ;
2322 configuration . GetSection ( "CoreSettings" ) . Bind ( settings ) ;
2423
25- Core . Data . CacheProviderMongoDB . CreateDefaultInstance ( settings ) ;
24+ try
25+ {
26+ Core . Data . CacheProviderMongoDB . CreateDefaultInstance ( settings ) ;
27+ }
28+ catch ( Exception ex )
29+ {
30+ System . Diagnostics . Debug . WriteLine ( "Failed to connect to MongoDB for caching: " + ex . Message ) ;
31+ }
2632 }
2733
2834 public IConfiguration Configuration { get ; }
@@ -88,10 +94,6 @@ public void ConfigureServices(IServiceCollection services)
8894 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
8995 public void Configure ( IApplicationBuilder app , IWebHostEnvironment env )
9096 {
91- #if DEBUG
92- app . UseBlockingDetection ( ) ;
93- #endif
94-
9597 app . UseSession ( ) ;
9698
9799 app . UseStatusCodePagesWithRedirects ( "~/Home/Error?code={0}" ) ;
Original file line number Diff line number Diff line change 1515}
1616
1717<div class =" container" >
18- <h1 >Share Network Data with Open Charge Map</h1 >
18+ <h1 >Promote Your Network Locations with Open Charge Map</h1 >
1919 <div class =" alert alert-info" >
2020 <p >
2121 We invite all charging networks to promote their charging locations for free via <em >Open Charge Map</em > by directly supplying EVSE charging station location information to us as an OCPI data feed for import and redistribution.
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<configuration >
3- <location path =" ." inheritInChildApplications =" false" >
4- <system .webServer>
5- <handlers >
6- <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
7- </handlers >
8- <aspNetCore processPath =" dotnet" arguments =" .\OCM.Web.dll" stdoutLogEnabled =" true " hostingModel =" inprocess" >
3+ <location path =" ." inheritInChildApplications =" false" >
4+ <system .webServer>
5+ <handlers >
6+ <add name =" aspNetCore" path =" *" verb =" *" modules =" AspNetCoreModuleV2" resourceType =" Unspecified" />
7+ </handlers >
8+ <aspNetCore processPath =" dotnet" arguments =" .\OCM.Web.dll" stdoutLogEnabled =" false " hostingModel =" inprocess" >
99
10- </aspNetCore >
11- <httpCompression >
12- <dynamicTypes >
13- <add mimeType =" application/json" enabled =" true" />
14- </dynamicTypes >
15- </httpCompression >
16- </system .webServer>
17- </location >
10+ </aspNetCore >
11+ <httpCompression >
12+ <dynamicTypes >
13+ <add mimeType =" application/json" enabled =" true" />
14+ </dynamicTypes >
15+ </httpCompression >
16+ </system .webServer>
17+ </location >
1818</configuration >
You can’t perform that action at this time.
0 commit comments