public void Start(ServerProtocol ActiveConnection, TcpClient Client, ClientRequest Request, string UpdatesDirectory) { this._ActiveConnection = ActiveConnection; this._ActiveTcpClient = Client; this._ActiveConnection.RequestReceived += new ServerProtocol.RequestReceivedEventHandler(this.Update_RequestReceived); this._UpdatesDirectory = new DirectoryInfo(UpdatesDirectory); this.Update_RequestReceived(Client, Request); }
private void AbortUpdate() { if (this.UpdateComplete != null) { this.UpdateComplete(this._ActiveConnection, this._ActiveTcpClient, this._UpdatingProduct, this._FilesTransferred); } this._ActiveConnection.RequestReceived -= new ServerProtocol.RequestReceivedEventHandler(this.Update_RequestReceived); this._ActiveConnection = null; this._UpdatingProduct = ""; this._UpdatesDirectory = null; this._UpdatingProductDirectory = null; this._FilesTransferred = 0; }