Skip to content

AspNet Request WebSocket Requested Protocols Layout Renderer

Rolf Kristensen edited this page Jul 18, 2022 · 2 revisions

ASP.NET Request HttpContext.WebSockets.WebSocketRequestedProtocols

Platforms Supported: All

Introduced with NLog.Web.AspNetCore v5.1.0 and NLog.Web v5.1.0 (NET46)

Configuration Syntax

${aspnet-request-web-socket-requested-protocols}

Formatting options

  • outputFormat - Renders as flat string or as JSON. Default: Flat.

    • Flat - Key-value-pair as standard string
    • JsonArray - Key-value-pair in JSON-array
  • itemSeparator Separator between items. Default: ,. Only applies when OutputFormat is Flat.

Clone this wiki locally