Class DescriptorPool
- Namespace
- Kuestenlogik.Bowire.Protocol.Grpc.Mock
- Assembly
- Kuestenlogik.Bowire.Protocol.Grpc.dll
Builds a live Google.Protobuf.Reflection.FileDescriptor pool from the base64-encoded
schemaDescriptor payloads attached to gRPC recording steps. The
pool is consumed by the mock's gRPC Server Reflection endpoint so a
second Bowire workbench can auto-discover the mocked services without
needing out-of-band access to the original .proto files.
public static class DescriptorPool
- Inheritance
-
DescriptorPool
- Inherited Members
Methods
BuildFrom(BowireRecording)
Parse every unique schemaDescriptor in the recording and return
the flat list of Google.Protobuf.Reflection.FileDescriptor objects they contain.
Steps without a descriptor are silently skipped. Parse failures on an
individual step are surfaced as an InvalidDataException
— we don't want Server Reflection to silently lie about what's
actually mocked.
public static IReadOnlyList<FileDescriptor> BuildFrom(BowireRecording recording)
Parameters
recordingBowireRecording
Returns
- IReadOnlyList<FileDescriptor>