C# Класс Mercurial.PersistentClient

This class implements IClient by spinning up an instance when first instantiated, and keeping the instance around and communicating with it over standard input and output, using the new "command server mode" introduced in Mercurial 1.9.
Наследование: IClient, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CancelExecuting ( ) : void

Stops command executing.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Execute ( IMercurialCommand command ) : void

Executes the given IMercurialCommand command against the Mercurial repository.

IsSupported ( string repositoryPath ) : bool

Determine if this class is supported by the given repository and current Mercurial client version.

PersistentClient ( string repositoryPath ) : System

Initializes a new instance of the PersistentClient class.

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

Метод Описание
DecodeInitialBlock ( ) : void

Decodes the initial block that Mercurial outputs when it is spun up.

StartPersistentMercurialClient ( ) : void

This spins up a Mercurial client in command server mode for the repository.

StopPersistentMercurialClient ( ) : void

This spins down the Mercurial client that was spun up by StartPersistentMercurialClient.

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

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

Stops command executing.
public CancelExecuting ( ) : void
Результат void

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Executes the given IMercurialCommand command against the Mercurial repository.
/// is null. /// /// HG did not complete within the allotted time. ///
public Execute ( IMercurialCommand command ) : void
command IMercurialCommand /// The command to execute. ///
Результат void

IsSupported() публичный статический Метод

Determine if this class is supported by the given repository and current Mercurial client version.
/// is null or empty. ///
public static IsSupported ( string repositoryPath ) : bool
repositoryPath string /// The path to the repository to check supportability for. ///
Результат bool

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

Initializes a new instance of the PersistentClient class.
/// is null or empty. /// /// The is not supported for the specified repository path, /// or the current Mercurial client. ///
public PersistentClient ( string repositoryPath ) : System
repositoryPath string /// The path to the repository this will handle. ///
Результат System