Table of Contents

Class JsonRpcMessagePackDescriptor

Namespace
Nerdbank.JsonRpc.BrokeredServices
Assembly
Nerdbank.JsonRpc.dll

Captures generated contracts for MessagePack service connections.

public static class JsonRpcMessagePackDescriptor
Inheritance
JsonRpcMessagePackDescriptor
Inherited Members

Methods

Create<T>(ServiceMoniker)

Captures a contract's statically resolved shape.

public static JsonRpcMessagePackDescriptor<T> Create<T>(ServiceMoniker moniker) where T : class, IShapeable<T>

Parameters

moniker ServiceMoniker

The service identity.

Returns

JsonRpcMessagePackDescriptor<T>

The typed MessagePack descriptor.

Type Parameters

T

The primary service interface.

Create<T>(ServiceMoniker, ITypeShape<T>)

Captures a contract's source-generated shape.

public static JsonRpcMessagePackDescriptor<T> Create<T>(ServiceMoniker moniker, ITypeShape<T> shape) where T : class

Parameters

moniker ServiceMoniker

The service identity.

shape ITypeShape<T>

The generated contract shape.

Returns

JsonRpcMessagePackDescriptor<T>

The typed MessagePack descriptor.

Type Parameters

T

The primary service interface.

Create<T, TProvider>(ServiceMoniker)

Captures a contract using a source-generated witness.

public static JsonRpcMessagePackDescriptor<T> Create<T, TProvider>(ServiceMoniker moniker) where T : class where TProvider : IShapeable<T>

Parameters

moniker ServiceMoniker

The service identity.

Returns

JsonRpcMessagePackDescriptor<T>

The typed MessagePack descriptor.

Type Parameters

T

The primary service interface.

TProvider

The source-generated shape provider.