3 instantiations of GrpcJsonTranscodingOptions
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
UnaryServerCallHandlerTests.cs (3)
915
jsonTranscodingOptions: new
GrpcJsonTranscodingOptions
()
993
jsonTranscodingOptions: new
GrpcJsonTranscodingOptions
()
1713
jsonTranscodingOptions: new
GrpcJsonTranscodingOptions
19 references to GrpcJsonTranscodingOptions
Microsoft.AspNetCore.Grpc.JsonTranscoding (9)
GrpcJsonTranscodingServiceExtensions.cs (5)
29
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<
GrpcJsonTranscodingOptions
>, GrpcJsonTranscodingOptionsSetup>());
39
/// <param name="configureOptions">An <see cref="Action{GrpcJsonTranscodingOptions}"/> to configure the provided <see cref="
GrpcJsonTranscodingOptions
"/>.</param>
41
public static IGrpcServerBuilder AddJsonTranscoding(this IGrpcServerBuilder builder, Action<
GrpcJsonTranscodingOptions
> configureOptions)
50
private sealed class GrpcJsonTranscodingOptionsSetup : IConfigureOptions<
GrpcJsonTranscodingOptions
>
59
public void Configure(
GrpcJsonTranscodingOptions
options)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (2)
36
private readonly
GrpcJsonTranscodingOptions
_jsonTranscodingOptions;
48
GrpcJsonTranscodingOptions
jsonTranscodingOptions)
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (2)
19
private readonly
GrpcJsonTranscodingOptions
_jsonTranscodingOptions;
29
IOptions<
GrpcJsonTranscodingOptions
> jsonTranscodingOptions,
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (10)
GrpcJsonTranscodingServiceExtensionsTests.cs (6)
22
var
options1 = serviceProvider.GetRequiredService<IOptions<
GrpcJsonTranscodingOptions
>>().Value;
26
var
options2 = serviceProvider.GetRequiredService<IOptions<
GrpcJsonTranscodingOptions
>>().Value;
47
var
options = serviceProvider.GetRequiredService<IOptions<
GrpcJsonTranscodingOptions
>>().Value;
ServerStreamingServerCallHandlerTests.cs (2)
307
GrpcJsonTranscodingOptions
? jsonTranscodingOptions = null,
324
GrpcJsonTranscodingOptions
? jsonTranscodingOptions = null,
UnaryServerCallHandlerTests.cs (2)
1810
GrpcJsonTranscodingOptions
? jsonTranscodingOptions = null,
1827
GrpcJsonTranscodingOptions
? jsonTranscodingOptions = null,