C# Class CClash.CClashServerClient

Inheritance: ICompilerCache
Show file Open project: artillery/cclash Class Usage Examples

Public Methods

Method Description
CClashServerClient ( string cachedir ) : System
CheckCache ( ICompiler comp, IEnumerable args, DataHash commonkey, CacheManifest &manifest ) : bool
CompileOrCache ( ICompiler comp, IEnumerable args ) : int
DeriveHashKey ( ICompiler comp, IEnumerable args ) : DataHash
Dispose ( ) : void
GetStats ( string compiler ) : string
IsSupported ( ICompiler comp, IEnumerable args ) : bool
SetCaptureCallback ( ICompiler comp, Action onOutput, Action onError ) : void
SetCompiler ( string compiler, string workdir, string>.System envs ) : ICompiler
StartBackgroundServer ( ) : void
Transact ( CClashRequest req ) : CClashResponse

Private Methods

Method Description
Connect ( ) : void
ConnectClient ( ) : void
Dispose ( bool disposing ) : void
Open ( ) : void

Method Details

CClashServerClient() public method

public CClashServerClient ( string cachedir ) : System
cachedir string
return System

CheckCache() public method

public CheckCache ( ICompiler comp, IEnumerable args, DataHash commonkey, CacheManifest &manifest ) : bool
comp ICompiler
args IEnumerable
commonkey DataHash
manifest CacheManifest
return bool

CompileOrCache() public method

public CompileOrCache ( ICompiler comp, IEnumerable args ) : int
comp ICompiler
args IEnumerable
return int

DeriveHashKey() public method

public DeriveHashKey ( ICompiler comp, IEnumerable args ) : DataHash
comp ICompiler
args IEnumerable
return DataHash

Dispose() public method

public Dispose ( ) : void
return void

GetStats() public method

public GetStats ( string compiler ) : string
compiler string
return string

IsSupported() public method

public IsSupported ( ICompiler comp, IEnumerable args ) : bool
comp ICompiler
args IEnumerable
return bool

SetCaptureCallback() public method

public SetCaptureCallback ( ICompiler comp, Action onOutput, Action onError ) : void
comp ICompiler
onOutput Action
onError Action
return void

SetCompiler() public method

public SetCompiler ( string compiler, string workdir, string>.System envs ) : ICompiler
compiler string
workdir string
envs string>.System
return ICompiler

StartBackgroundServer() public static method

public static StartBackgroundServer ( ) : void
return void

Transact() public method

public Transact ( CClashRequest req ) : CClashResponse
req CClashRequest
return CClashResponse