Skip to content

ConnectionFrameHelper

class

Namespace: Orleans.Runtime.Messaging

Provides framing utilities for connection middleware authors.

Wire format per frame: [4-byte LE length] [1-byte frame type] [payload]. The length field equals 1 + payload.Length.

Connection middlewares should follow the Microsoft.AspNetCore.Connections.ConnectionDelegate pipeline pattern (like TLS) and register via SiloConnectionOptions or ClientConnectionOptions. Use these helpers for structured frame I/O within your middleware.

This helper is optional. Middleware authors who need custom protocols can read/write directly from context.Transport.Input (PipeReader) and context.Transport.Output (PipeWriter) without using this class.

public static class ConnectionFrameHelper

Methods

Fields