Delegate BrokeredServiceLoader
- Namespace
- Nerdbank.JsonRpc.BrokeredServices
- Assembly
- Nerdbank.JsonRpc.dll
Loads service implementation code and proffers its factory on demand.
public delegate ValueTask BrokeredServiceLoader(ServiceMoniker moniker, IBrokeredServiceContainer container)
Parameters
monikerServiceMonikerThe requested service identity.
containerIBrokeredServiceContainerThe container to which the implementation should be proffered.
Returns
- ValueTask
A task that completes when loading and proffering have finished.
Remarks
Loading is shared by concurrent requests and is not canceled when an individual request is canceled. Proffer through the supplied container, which rejects proffers for this moniker after its registration is removed or replaced.