Table of Contents

Interface IJsonRpcFormatterState

Namespace
StreamJsonRpc.Reflection
Assembly
StreamJsonRpc.dll

An interface implemented by IJsonRpcMessageFormatter instances to support some formatter extensions such as MessageFormatterEnumerableTracker.

public interface IJsonRpcFormatterState

Properties

DeserializingMessageWithId

Gets the ID of the response currently being deserialized.

RequestId DeserializingMessageWithId { get; }

Property Value

RequestId

SerializingMessageWithId

Gets the id of the request or response currently being serialized.

RequestId SerializingMessageWithId { get; }

Property Value

RequestId

SerializingRequest

Gets a value indicating whether a JsonRpcRequest is being serialized.

bool SerializingRequest { get; }

Property Value

bool

Remarks

A response is being serialized if this property's value is false while SerializingMessageWithId is non-empty.