1 write to HttpRule
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
GrpcJsonTranscodingMetadata.cs (1)
23
HttpRule
= httpRule;
7 references to HttpRule
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (5)
JsonTranscodingServiceMethodProviderTests.cs (5)
62
Assert.Equal("/v1/additional_bindings/{name}", getMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.
HttpRule
.Get);
67
Assert.Equal("/v1/additional_bindings/{name}", additionalMethodModel.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.
HttpRule
.Delete);
82
Assert.Equal("/v1/frames:startFrameImport", startFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.
HttpRule
.Post);
86
Assert.Equal("/v1/frames:getFrameImport", getFrameImport.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.
HttpRule
.Post);
158
Assert.Equal("/v1/server_greeter/{name}", endpoint.Metadata.GetMetadata<GrpcJsonTranscodingMetadata>()?.
HttpRule
.Get);
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
47
var httpRule = grpcMetadata.
HttpRule
;
50
if (ServiceDescriptorHelpers.TryResolvePattern(grpcMetadata.
HttpRule
, out var pattern, out var verb))