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