Struct ProtobufDecodeContext
- Namespace
- Fluxzy.Formatters
- Assembly
- Fluxzy.Core.dll
Provides context for decoding a single protobuf message extracted from a gRPC frame.
public readonly struct ProtobufDecodeContext
- Inherited Members
- Extension Methods
Constructors
ProtobufDecodeContext(ReadOnlyMemory<byte>, string?, string?, bool)
public ProtobufDecodeContext(ReadOnlyMemory<byte> messageData, string? serviceName, string? methodName, bool isRequest)
Parameters
messageDataReadOnlyMemory<byte>serviceNamestringmethodNamestringisRequestbool
Properties
IsRequest
True if this is a request (input) message, false for a response (output) message.
public bool IsRequest { get; }
Property Value
MessageData
The raw protobuf message bytes (without the gRPC 5-byte frame header).
public ReadOnlyMemory<byte> MessageData { get; }
Property Value
MethodName
The gRPC method name extracted from the request path (e.g., "MyMethod").
public string? MethodName { get; }
Property Value
ServiceName
The gRPC service name extracted from the request path (e.g., "mypackage.MyService").
public string? ServiceName { get; }