Exemplo n.º 1
0
        public void Execute(IJobExecutionContext context)
        {
            string url     = context.JobDetail.Key.Name;
            string catalog = DbConvention.GetCatalog(url);
            var    db      = new DbInstaller(catalog);

            db.Install();

            var installables = GetInstallables();

            foreach (var installable in installables)
            {
                new AppInstaller(catalog, installable).Install();
            }
        }
Exemplo n.º 2
0
        public void Execute(IJobExecutionContext context)
        {
            string url = context.JobDetail.Key.Name;

            try
            {
                string catalog = DbConvention.GetCatalog(url);
                var db = new DbInstaller(catalog);
                db.Install();

                var installables = GetInstallables();

                foreach (var installable in installables)
                {
                    new AppInstaller(catalog, installable).Install();
                }
            }
            catch (Exception ex)
            {
                Log.Error("Could not install frapid on {url} due to errors. Exception: {Exception}", url, ex);
                throw;
            }
        }