Table of Contents

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

messageData ReadOnlyMemory<byte>
serviceName string
methodName string
isRequest bool

Properties

IsRequest

True if this is a request (input) message, false for a response (output) message.

public bool IsRequest { get; }

Property Value

bool

MessageData

The raw protobuf message bytes (without the gRPC 5-byte frame header).

public ReadOnlyMemory<byte> MessageData { get; }

Property Value

ReadOnlyMemory<byte>

MethodName

The gRPC method name extracted from the request path (e.g., "MyMethod").

public string? MethodName { get; }

Property Value

string

ServiceName

The gRPC service name extracted from the request path (e.g., "mypackage.MyService").

public string? ServiceName { get; }

Property Value

string