Header menu logo FCQRS

Describe Type

Diagnostics helper: a short, readable case name for logging. Unwraps a Command<_>/Event<_> envelope to its payload (via IEnvelope), then a C# `union` to its active case (its generated `.Value`), and falls back to the type name — so F# DUs and plain payloads work too. Reflection-based; meant for logs, not hot paths.

Static members

Static member Description

Describe.Case(value)

Full Usage: Describe.Case(value)

Parameters:
    value : obj

Returns: string

A short case name, e.g. "CreateOrUpdate" for a DocumentCommand.CreateOrUpdate (or a Command/Event wrapping one). Returns "<none>" for null.

value : obj
Returns: string

Type something to start searching.