Table of Contents

Class JsonRpcUtf8Descriptor

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

Captures generated contracts for UTF-8 JSON service connections.

public static class JsonRpcUtf8Descriptor
Inheritance
JsonRpcUtf8Descriptor
Inherited Members

Methods

Create<T>(ServiceMoniker)

Captures a contract's statically resolved shape.

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

Parameters

moniker ServiceMoniker

The service identity.

Returns

JsonRpcUtf8Descriptor<T>

The typed UTF-8 JSON descriptor.

Type Parameters

T

The primary service interface.

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

Captures a contract's source-generated shape.

public static JsonRpcUtf8Descriptor<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

JsonRpcUtf8Descriptor<T>

The typed UTF-8 JSON descriptor.

Type Parameters

T

The primary service interface.

Create<T, TProvider>(ServiceMoniker)

Captures a contract using a source-generated witness.

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

Parameters

moniker ServiceMoniker

The service identity.

Returns

JsonRpcUtf8Descriptor<T>

The typed UTF-8 JSON descriptor.

Type Parameters

T

The primary service interface.

TProvider

The source-generated shape provider.