Ejemplo n.º 1
0
        public QuickDeploy(DeploymentTarget target, DeploymentTargetPortal targetPortal, UIWorkItem workItem)
        {
            _workItem = workItem;
            _target = target;
            _targetPortal = targetPortal;

            var projectContext = ApplicationContext.Current.Services.Get<IProjectContextService>(true);
            var portalModel = projectContext.ActiveProject.Models.Get<PortalModel>();
            Guid portalId = new Guid(_targetPortal.InstanceId);
            _portal = portalModel.PortalApplications.OfType<CabApplicationPortal>().FirstOrDefault(portal => portal.Id == portalId);
            if (_portal == null)
                throw new Exception(string.Format("Could not find portal application by Id: {0}", portalId));

            _worker = new BackgroundWorker();
            _worker.WorkerReportsProgress = true;
            _worker.DoWork += (sender, e) => InternalDeploy();
        }
 internal QuickPageGenerationProvider(QuickPageGenerator generator, PortalPage page, CabApplicationPortal portal)
     : base(portal)
 {
     _gen = generator;
     _page = page;
 }
 public GeneratorProviderBase(CabApplicationPortal portal)
 {
     _portal = portal;
 }