Share via


JsonRpc.TraceEvents Enum

Definition

Event IDs raised to our TraceSource.

public enum JsonRpc.TraceEvents
type JsonRpc.TraceEvents = 
Public Enum JsonRpc.TraceEvents
Inheritance
JsonRpc.TraceEvents

Fields

Name Value Description
LocalMethodAdded 0

Occurs when a local RPC method is added to our mapping table.

LocalMethodNotAdded 1

Occurs when a candidate local RPC method is NOT added to our mapping table.

LocalEventListenerAdded 2

Occurs when an event handler subscribes to an event on an added target object.

ListeningStarted 3

Occurs when this instance starts listening for incoming RPC messages.

ReceivedCancellation 4

Occurs when a notification arrives that is attempting to cancel a prior request.

RequestWithoutMatchingTarget 5

Occurs when a JSON-RPC request or notification was received, but no local method is found to invoke for it.

RequestReceived 6

Occurs when a JsonRpcRequest is received.

MessageReceived 7

Occurs when any JsonRpcMessage is received. At Info, TraceData(TraceEventCache, String, TraceEventType, Int32, Object) is invoked with the JsonRpcMessage that is received. At Verbose, TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[]) is invoked with the JSON representation of the message.

MessageSent 8

Occurs when any JsonRpcMessage is transmitted. At Info, TraceData(TraceEventCache, String, TraceEventType, Int32, Object) is invoked with the JsonRpcMessage that is transmitted. At Verbose, TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[]) is invoked with the JSON representation of the message.

LocalInvocation 9

Occurs when a JsonRpcRequest is received and successfully mapped to a local method to be invoked.

LocalInvocationError 10

Occurs when a locally invoked method from a JsonRpcRequest throws an exception (or returns a faulted Task). TraceData(TraceEventCache, String, TraceEventType, Int32, Object[]) is invoked with the thrown Exception, request method name, request ID, and the argument object/array. TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[]) is invoked with a text message formatted with exception information.

ReceivedResult 11

Occurs when a successful result message for a prior invocation is received.

ReceivedError 12

Occurs when an error message for a prior invocation is received.

Closed 13

Occurs when the connection is closed.

RequestAbandonedByRemote 14

A local request is canceled because the remote party terminated the connection.

LocalContractViolation 15

An extensibility point was leveraged locally and broke the contract.

ProgressNotificationError 16

An exception occurred when reading or writing the $/progress notification.

MethodArgumentDeserializationFailure 17

An incoming RPC call included an argument that failed to deserialize to the type on a candidate target method's proposed matching parameter.

TransmissionFailed 18

An outgoing RPC message was not sent due to an exception, possibly a serialization failure.

ExceptionTypeNotFound 19

An incoming Exception cannot be deserialized to its original type because the type could not be loaded.

ExceptionNotSerializable 20

An instance of an Exception-derived type was serialized as its base type because it did not have the SerializableAttribute applied.

ExceptionNotDeserializable 21

An Exception-derived type could not be deserialized because it was missing a deserializing constructor. A base-type that does offer the constructor will be instantiated instead.

Applies to