2 implementations of IJsonHelper
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonHelper.cs (1)
16internal sealed class NewtonsoftJsonHelper : IJsonHelper
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\SystemTextJsonHelper.cs (1)
11internal sealed class SystemTextJsonHelper : IJsonHelper
46 references to IJsonHelper
Microsoft.AspNetCore.Mvc.NewtonsoftJson (7)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (2)
90f => f.ServiceType == typeof(IJsonHelper) && 97services.TryAddSingleton<IJsonHelper, NewtonsoftJsonHelper>();
JsonHelperExtensions.cs (4)
12/// Newtonsoft.Json specific extensions to <see cref="IJsonHelper"/>. 19/// <param name="jsonHelper">The <see cref="IJsonHelper"/>.</param> 30this IJsonHelper jsonHelper, 40nameof(IJsonHelper),
NewtonsoftJsonHelper.cs (1)
14/// Newtonsoft.Json based implementation of <see cref="IJsonHelper"/>.
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (12)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (2)
38.AddSingleton<IJsonHelper, SystemTextJsonHelper>(); 44var jsonHelper = Assert.Single(services, d => d.ServiceType == typeof(IJsonHelper));
NewtonsoftJsonHelperTest.cs (3)
45var helper = GetJsonHelper(); 73var helper = GetJsonHelper(); 88protected override IJsonHelper GetJsonHelper()
src\Mvc\Mvc.ViewFeatures\test\Rendering\JsonHelperTestBase.cs (7)
10protected abstract IJsonHelper GetJsonHelper(); 16var helper = GetJsonHelper(); 35var helper = GetJsonHelper(); 50var helper = GetJsonHelper(); 69var helper = GetJsonHelper(); 88var helper = GetJsonHelper(); 107var helper = GetJsonHelper();
Microsoft.AspNetCore.Mvc.Razor (2)
RazorPageActivator.cs (1)
32IJsonHelper jsonHelper,
RazorPagePropertyActivator.cs (1)
106else if (property.PropertyType == typeof(IJsonHelper))
Microsoft.AspNetCore.Mvc.Razor.Test (4)
RazorPageActivatorTest.cs (3)
27JsonHelper = Mock.Of<IJsonHelper>(); 37private IJsonHelper JsonHelper { get; } 277public IJsonHelper Json { get; set; }
RazorPageCreateTagHelperTest.cs (1)
68Mock.Of<IJsonHelper>(),
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageFactoryProvider.cs (1)
25IJsonHelper jsonHelper,
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (2)
494public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } 516public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
Infrastructure\DefaultPageFactoryProviderTest.cs (2)
369IJsonHelper jsonHelper = null, 378jsonHelper ?? Mock.Of<IJsonHelper>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
164services.TryAddSingleton<IJsonHelper, SystemTextJsonHelper>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Rendering\JsonHelperTestBase.cs (7)
10protected abstract IJsonHelper GetJsonHelper(); 16var helper = GetJsonHelper(); 35var helper = GetJsonHelper(); 50var helper = GetJsonHelper(); 69var helper = GetJsonHelper(); 88var helper = GetJsonHelper(); 107var helper = GetJsonHelper();
Rendering\SystemTextJsonHelperTest.cs (5)
12protected override IJsonHelper GetJsonHelper() => GetJsonHelper(new JsonOptions()); 14private static IJsonHelper GetJsonHelper(JsonOptions options) 23var helper = GetJsonHelper(); 42var helper = GetJsonHelper(); 71var helper = GetJsonHelper(options);
RazorBuildWebSite.Views (3)
Pages\Rzc\Page.cs (1)
34public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
Views\Common\CommonView.cs (1)
34public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
Views\Rzc\View.cs (1)
34public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }