1 instantiation of GrpcJsonTranscodingMetadata
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Binding\ReflectionServiceInvokerResolver.cs (1)
46metadata.Add(new GrpcJsonTranscodingMetadata(methodDescriptor, httpRule));
8 references to GrpcJsonTranscodingMetadata
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
GrpcJsonTranscodingMetadata.cs (1)
15/// Creates a new instance of <see cref="GrpcJsonTranscodingMetadata"/> with the provided Protobuf
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (5)
JsonTranscodingServiceMethodProviderTests.cs (5)
62Assert.Equal("/v1/additional_bindings/{name}", getMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Get); 67Assert.Equal("/v1/additional_bindings/{name}", additionalMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Delete); 82Assert.Equal("/v1/frames:startFrameImport", startFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Post); 86Assert.Equal("/v1/frames:getFrameImport", getFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Post); 158Assert.Equal("/v1/server_greeter/{name}", endpoint.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.HttpRule.Get);
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
43var grpcMetadata = endpoint.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>();