public SetTimeout ( int seconds ) : void | ||
seconds | int | /// number of seconds to wait (with no data transfer occurring) /// before aborting an IO read or write operation with the /// connected client. /// |
리턴 | void |
/// <exception cref="NGit.Transport.Resolver.ServiceNotEnabledException"></exception> /// <exception cref="NGit.Transport.Resolver.ServiceNotAuthorizedException"></exception> public override UploadPack Create(DaemonClient req, Repository db) { UploadPack up = new UploadPack(db); up.SetTimeout(this._enclosing.GetTimeout()); up.SetPackConfig(this._enclosing.GetPackConfig()); return(up); }
/// <exception cref="System.IO.IOException"></exception> internal override void Execute(DaemonClient dc, Repository db) { UploadPack rp = new UploadPack(db); InputStream @in = dc.GetInputStream(); rp.SetTimeout(this._enclosing.GetTimeout()); rp.SetPackConfig(this._enclosing.packConfig); rp.Upload(@in, dc.GetOutputStream(), null); }