InvocationContext Class

Definition

An object represents the context of a serverless message invocation.

public class InvocationContext
type InvocationContext = class
Public Class InvocationContext
Inheritance
InvocationContext

Constructors

InvocationContext()

Properties

Arguments

The arguments of invocation message.

Category

The category of the message.

Claims

The claims of the client. If you multiple claims have the same key, only the first one will be reserved.

ConnectionId

The connection-id of the client which send the message.

Error

The error message of close connection event. Only close connection message can have this property, and it can be empty if connections close with no error.

Event

The event of the message.

Headers

The headers of request. Headers with duplicated key will be joined by comma.

Hub

The hub which message belongs to.

Query

The query of the request when client connect to the service. Queries with duplicated key will be joined by comma.

UserId

The user identity of the client which send the message.

Extension Methods

GetClientManager(InvocationContext)

Get the client manager of this hub.

GetClientsAsync(InvocationContext)

Gets an object that can be used to invoke methods on the clients connected to this hub.

GetGroupsAsync(InvocationContext)

Get the group manager of this hub.

GetUserGroupManagerAsync(InvocationContext)

Get the user group manager of this hub.

Applies to