Show / Hide Table of Contents

Class ImplementationServer

Simple HTTP web server that serves implementations as on-demand generated archives.

Inheritance
Object
ImplementationServer
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 port.

NotAdminException

Needs admin rights to serve HTTP requests.

In This Article
Back to top Copyright Bastian Eicher et al