Esempio n. 1
0
        private Exception TryDeployCurrentPackage()
        {
            try
            {
                _currentPackage.Id   = txtPackageId.Text.Trim();
                _currentPackage.Name = txtPackageName.Text.Trim();

                _agent.DeployEtlPackage(_currentPackage, new EtlPackageDeploymentOptions
                {
                    Overwrite = true,
                });
                return(null);
            }
            catch (Exception exc)
            {
                return(exc);
            }
        }
        private Exception TryCreatePackage(string packageId, string packageName)
        {
            try
            {
                var package = new EtlPackage
                {
                    Id      = packageId,
                    Name    = packageName,
                    Enabled = true,
                };

                _agent.DeployEtlPackage(package, null);
                return(null);
            }
            catch (Exception exc)
            {
                return(exc);
            }
        }