ServerCommandRequest
The server side of a CommandRequest: what the gateway receives from any client, the HTTP edge or the in-process client, before admission. A command a context's command topic delivers is admitted by the intake instead (ServiceCommandAdmission). What the route fixed (context, aggregate, command and, on an instance route, aggregateId), the undecoded body, who sent it (caller), and the facts the request's headers gave: a cross-scope targetScope (Wow-Scope), a requestId (Wow-Request-Id), an expectedVersion (If-Match), the request facts in headers, and the wait plan (Wow-Wait; the default plan when absent).
command is the command type's model name (or a former name, @Alias), or the part of it after the aggregate type (AddItem for shop.cart.AddItem). A request built from a command object (of with a CommandBody.Value and an AggregateRef) names its command by the object's class name, and admission derives the command type from the class: from the models of the node for a context it serves, from the contract of a peer context. Identity is not taken from anywhere else: not from headers (a header named Wow-… or wow.… is reserved and refused) and never from the body. tenantId is the tenant the request's ref names: admission decides the tenant as always (the caller's, a cross-scope target's or the one fixed for the type) and refuses a request whose ref names another.
trace holds the trace context the request arrived with, such as the W3C traceparent and tracestate headers: delivery metadata, never a fact, which only an observer reads.
call is the root command a service identity's synchronous call acts for (the Wow-Call header): admission takes it only from a caller that is a service identity.
frameworkRequestId says that requestId is one the framework derived while deciding a command, for a call the decide function sends: admission takes its prefix (wow:), which it refuses from any other request but a service's call (#7064). Only the in-process client sets it.
Fields may be added: construct a request with of, naming the facts it has; the constructor is internal to Wow.
Constructors
Properties
Functions
This ServerCommandRequest with the given fields replaced: Wow's own copy, left out of the ABI.