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