Class ImplementationDiscovery
- Namespace
- ZeroInstall.Services.Fetchers
- Assembly
- ZeroInstall.Services.dll
Discovers implementations in implementation stores on other machines in the local network.
public class ImplementationDiscovery : IImplementationDiscovery, IDisposable
- Inheritance
-
ImplementationDiscovery
- Implements
- Inherited Members
- Extension Methods
Constructors
ImplementationDiscovery()
Starts discovering implementation stores on other machines in the local network.
public ImplementationDiscovery()
Methods
Dispose()
Stops discovering implementation stores.
public void Dispose()
GetImplementation(ManifestDigest, CancellationToken)
Finds a specific implementation in an implementation store on another machine. Blocks until the implementation is found or the operation is cancelled.
public Uri GetImplementation(ManifestDigest manifestDigest, CancellationToken cancellationToken)
Parameters
manifestDigest
ManifestDigestThe digest the implementation to find.
cancellationToken
CancellationTokenUsed to stop looking for the implementation.
Returns
- Uri
An archive URI from which the implementation can be downloaded.
Exceptions
- OperationCanceledException
The
cancellationToken
was cancelled.