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
monikerServiceMonikerThe service identity.
Returns
- JsonRpcMessagePackDescriptor<T>
The typed MessagePack descriptor.
Type Parameters
TThe 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
monikerServiceMonikerThe service identity.
shapeITypeShape<T>The generated contract shape.
Returns
- JsonRpcMessagePackDescriptor<T>
The typed MessagePack descriptor.
Type Parameters
TThe 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
monikerServiceMonikerThe service identity.
Returns
- JsonRpcMessagePackDescriptor<T>
The typed MessagePack descriptor.
Type Parameters
TThe primary service interface.
TProviderThe source-generated shape provider.