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