Class ImplementationServer
Simple HTTP web server that serves implementations as on-demand generated archives.
Namespace: ZeroInstall.Archives
Assembly: ZeroInstall.Archives.dll
Syntax
public class ImplementationServer : Object
Constructors
ImplementationServer(IImplementationStore)
Declaration
public ImplementationServer(IImplementationStore implementationStore)
Parameters
Type | Name | Description |
---|---|---|
IImplementationStore | implementationStore |
Methods
Serve(Int32, CancellationToken)
Serves implementations as archives via HTTP. Blocks until cancellationToken
is triggered.
Declaration
public void Serve(int port, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Int32 | port | The TCP port to serve on.. |
CancellationToken | cancellationToken | Used to stop serving. |
Exceptions
Type | Condition |
---|---|
WebException | Unable to serve on the specified |
NotAdminException | Needs admin rights to serve HTTP requests. |