Try to parse Php Serialized object.

This commit is contained in:
2018-10-22 01:13:42 +02:00
parent e47c1ccb5e
commit 70d91a84f3
10 changed files with 322 additions and 7 deletions

View File

@@ -42,6 +42,7 @@ namespace LaDOSE.Api
var MySqlUser = this.Configuration["MySql:User"];
var MySqlPassword = this.Configuration["MySql:Password"];
services.AddCors();
services.AddMvc().AddJsonOptions(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
services.AddDbContextPool<LaDOSEDbContext>( // replace "YourDbContext" with the class name of your DbContext
@@ -98,6 +99,7 @@ namespace LaDOSE.Api
services.AddScoped<IGameService, GameService>();
services.AddScoped<IEventService, EventService>();
services.AddScoped<ISeasonService, SeasonService>();
services.AddScoped<IUtilService, UtilService>();
services.AddTransient<IChallongeProvider>(p => new ChallongeProvider(this.Configuration["ApiKey:ChallongeApiKey"]));
}