/// <summary> /// Uploads a package file to the server in a non-transactional fashion /// </summary> /// <param name="owner">The owner form</param> /// <param name="connection">The connection used to upload the package</param> /// <param name="packageFile">The package file to upload</param> /// <param name="result">An <see cref="T:Maestro.Packaging.UploadPackageResult"/> object containing an optional list of operations to skip. It will be populated with the list of operations that passed and failed as the process executes</param> /// <returns>A DialogResult object that indicates the result of the operation</returns> public static DialogResult UploadPackageNonTransactional(Form owner, IServerConnection connection, string packageFile, UploadPackageResult result) { PackageProgress pkgp = new PackageProgress(); pkgp.Text = Strings.TitleUploading; var builder = new PackageBuilder(connection); pkgp.m_invokeObj = builder; pkgp.m_method = () => { builder.UploadPackageNonTransactional(packageFile, result); return true; }; return pkgp.ShowDialog(owner); }