private async Task<bool> Upload(RequestHeader header, ICollection<ClientFile> files, LogMethod method) { var package = await _packageHelper.PackAsync(files); var context = method.ToString(); this.LogRequest(context); await this.TransferHandler.WriteAsync(this.Id, (byte)method); var data = Utilities.Concat(header.NetworkBuffer, package); this.LogRequest(data, context); await this.TransferHandler.WriteAsync(data); var bytes = await this.TransferHandler.ReadAsync(); this.LogResponse(bytes, context); return Convert.ToBoolean(BitConverter.ToInt32(bytes, 0)); }