Class BrokeredServiceContainer.ServiceOffering
- Namespace
- Nerdbank.JsonRpc.BrokeredServices
- Assembly
- Nerdbank.JsonRpc.dll
Describes a host-discovered implementation without registration policy.
protected abstract class BrokeredServiceContainer.ServiceOffering
- Inheritance
-
BrokeredServiceContainer.ServiceOffering
- Inherited Members
Properties
Descriptor
Gets the server descriptor.
public IJsonRpcDescriptor Descriptor { get; }
Property Value
Methods
Create<T>(IJsonRpcDescriptor<T>, BrokeredServiceFactory<T>)
Captures a typed descriptor and its matching factory for host discovery.
public static BrokeredServiceContainer.ServiceOffering Create<T>(IJsonRpcDescriptor<T> descriptor, BrokeredServiceFactory<T> factory) where T : class
Parameters
descriptorIJsonRpcDescriptor<T>The server descriptor.
factoryBrokeredServiceFactory<T>The per-client factory.
Returns
- BrokeredServiceContainer.ServiceOffering
The discovered implementation.
Type Parameters
TThe primary service contract.