Skip to content

Commit

Permalink
PT-944: Remove redundant PolymorphicJsonConverter (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
akak1977 authored Apr 6, 2021
1 parent 59e6d0d commit 7ea5dc8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.

This file was deleted.

2 changes: 0 additions & 2 deletions src/VirtoCommerce.CoreModule.Web/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using VirtoCommerce.CoreModule.Data.Seo;
using VirtoCommerce.CoreModule.Data.Services;
using VirtoCommerce.CoreModule.Web.ExportImport;
using VirtoCommerce.CoreModule.Web.JsonConverters;
using VirtoCommerce.Platform.Core.Common;
using VirtoCommerce.Platform.Core.ExportImport;
using VirtoCommerce.Platform.Core.Modularity;
Expand Down Expand Up @@ -64,7 +63,6 @@ public void PostInitialize(IApplicationBuilder appBuilder)
permissionsProvider.RegisterPermissions(ModuleConstants.Security.Permissions.AllPermissions.Select(x => new Permission { GroupName = "Core", Name = x }).ToArray());

var mvcJsonOptions = appBuilder.ApplicationServices.GetService<IOptions<MvcNewtonsoftJsonOptions>>();
mvcJsonOptions.Value.SerializerSettings.Converters.Add(new PolymorphicJsonConverter());
mvcJsonOptions.Value.SerializerSettings.Converters.Add(new ConditionJsonConverter());

using (var serviceScope = appBuilder.ApplicationServices.CreateScope())
Expand Down

0 comments on commit 7ea5dc8

Please sign in to comment.