Partager via


CompletionMessage interface

A hub message representing the result of an invocation.

Extends

Properties

error

The error produced by the invocation, if any. Either error or result must be defined, but not both.

headers

A MessageHeaders dictionary containing headers attached to the message.

invocationId

The invocation ID.

result

The result produced by the invocation, if any. Either error or result must be defined, but not both.

type

Property Details

error

The error produced by the invocation, if any. Either error or result must be defined, but not both.

error?: string

Property Value

string

headers

A MessageHeaders dictionary containing headers attached to the message.

headers?: MessageHeaders

Property Value

invocationId

The invocation ID.

invocationId: string

Property Value

string

result

The result produced by the invocation, if any. Either error or result must be defined, but not both.

result?: any

Property Value

any

type

type: Completion

Property Value