Table of Contents

Class ImplementationServer

Namespace
ZeroInstall.Archives
Assembly
ZeroInstall.Archives.dll

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

public sealed class ImplementationServer : HttpServer, IDisposable
Inheritance
ImplementationServer
Implements
Inherited Members

Constructors

ImplementationServer(IImplementationStore, ushort, bool)

Starts serving implementations as archives via HTTP.

public ImplementationServer(IImplementationStore implementationStore, ushort port = 0, bool localOnly = false)

Parameters

implementationStore IImplementationStore

The implementation store to serve implementations from.

port ushort

The TCP port to listen on; 0 to automatically pick free port.

localOnly bool

true to only respond to requests from the local machine instead of the network. Useful for unit tests.

Exceptions

WebException

Unable to serve on the specified port.

NotAdminException

Needs admin rights to serve HTTP requests.

Fields

DnsServiceName

DNS name for discovering Zero Install implementation stores.

public const string DnsServiceName = "_0install-store._tcp"

Field Value

string

Methods

Dispose()

Stops serving implementations.

public override void Dispose()

HandleRequest(HttpListenerContext)

Handles a single HTTP request.

protected override void HandleRequest(HttpListenerContext context)

Parameters

context HttpListenerContext