C# Класс GitSharp.Core.Transport.Daemon

Basic daemon for the anonymous git:// transport protocol.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Daemon ( ) : System

Configure a daemon to listen on any available network port.

Daemon ( IPEndPoint addr ) : System

Configure a new daemon for the specified network address.

ExportDirectory ( DirectoryInfo dir ) : void

Recursively export all Git repositories within a directory.

ExportRepository ( string name, Repository db ) : void

Add a single repository to the set that is exported by this daemon. The existence (or lack-thereof) of git-daemon-export-ok is ignored by this method. The repository is always published.

GetService ( string name ) : GitSharp.Core.Transport.DaemonService

* Lookup a supported service so it can be reconfigured.

MatchService ( string cmd ) : GitSharp.Core.Transport.DaemonService
OpenRepository ( string name ) : Repository
Start ( ) : void

Start this daemon on a background thread.

Stop ( ) : void

Stop this daemon.

isRunning ( ) : bool

Приватные методы

Метод Описание
CanExport ( DirectoryInfo d ) : bool
OpenRepository ( DirectoryInfo f ) : Repository
startClient ( Socket s ) : void

Описание методов

Daemon() публичный Метод

Configure a daemon to listen on any available network port.
public Daemon ( ) : System
Результат System

Daemon() публичный Метод

Configure a new daemon for the specified network address.
public Daemon ( IPEndPoint addr ) : System
addr System.Net.IPEndPoint /// Address to listen for connections on. If null, any available /// port will be chosen on all network interfaces. ///
Результат System

ExportDirectory() публичный Метод

Recursively export all Git repositories within a directory.
public ExportDirectory ( DirectoryInfo dir ) : void
dir System.IO.DirectoryInfo /// the directory to export. This directory must not itself be a /// git repository, but any directory below it which has a file /// named git-daemon-export-ok will be published. ///
Результат void

ExportRepository() публичный Метод

Add a single repository to the set that is exported by this daemon. The existence (or lack-thereof) of git-daemon-export-ok is ignored by this method. The repository is always published.
public ExportRepository ( string name, Repository db ) : void
name string /// name the repository will be published under. ///
db Repository the repository instance.
Результат void

GetService() публичный Метод

* Lookup a supported service so it can be reconfigured.
public GetService ( string name ) : GitSharp.Core.Transport.DaemonService
name string /// Name of the service; e.g. "receive-pack"/"git-receive-pack" or /// "upload-pack"/"git-upload-pack". ///
Результат GitSharp.Core.Transport.DaemonService

MatchService() публичный Метод

public MatchService ( string cmd ) : GitSharp.Core.Transport.DaemonService
cmd string
Результат GitSharp.Core.Transport.DaemonService

OpenRepository() публичный Метод

public OpenRepository ( string name ) : Repository
name string
Результат Repository

Start() публичный Метод

Start this daemon on a background thread.
/// the server socket could not be opened. /// /// the daemon is already running. ///
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop this daemon.
public Stop ( ) : void
Результат void

isRunning() публичный Метод

public isRunning ( ) : bool
Результат bool