public RecognizedDevelopmentInstallation(
     GeneralInstallationLogic generalInstallationLogic, ExistingInstallationLogic existingInstallationLogic, KnownSystemLogic knownSystemLogic,
     RecognizedInstallationLogic recognizedInstallationLogic)
 {
     this.generalInstallationLogic    = generalInstallationLogic;
     this.existingInstallationLogic   = existingInstallationLogic;
     this.knownSystemLogic            = knownSystemLogic;
     this.recognizedInstallationLogic = recognizedInstallationLogic;
     developmentInstallationLogic     = new DevelopmentInstallationLogic(generalInstallationLogic, existingInstallationLogic, recognizedInstallationLogic);
 }
 public RecognizedDevelopmentInstallation(
     GeneralInstallationLogic generalInstallationLogic, ExistingInstallationLogic existingInstallationLogic, KnownSystemLogic knownSystemLogic,
     RecognizedInstallationLogic recognizedInstallationLogic)
 {
     this.generalInstallationLogic = generalInstallationLogic;
     this.existingInstallationLogic = existingInstallationLogic;
     this.knownSystemLogic = knownSystemLogic;
     this.recognizedInstallationLogic = recognizedInstallationLogic;
     developmentInstallationLogic = new DevelopmentInstallationLogic( generalInstallationLogic, existingInstallationLogic, recognizedInstallationLogic );
 }
 public RecognizedInstalledInstallation( GeneralInstallationLogic generalInstallationLogic, ExistingInstallationLogic existingInstallationLogic,
     KnownSystemLogic knownSystemLogic, RecognizedInstallationLogic recognizedInstallationLogic)
 {
     this.generalInstallationLogic = generalInstallationLogic;
     this.existingInstallationLogic = existingInstallationLogic;
     this.knownSystemLogic = knownSystemLogic;
     knownInstallationLogic =
         new KnownInstallationLogic( SystemListStatics.RsisSystemList.GetInstallationById( existingInstallationLogic.RuntimeConfiguration.RsisInstallationId.Value ) );
     this.recognizedInstallationLogic = recognizedInstallationLogic;
 }
 public RecognizedInstalledInstallation(GeneralInstallationLogic generalInstallationLogic, ExistingInstallationLogic existingInstallationLogic,
                                        KnownSystemLogic knownSystemLogic, RecognizedInstallationLogic recognizedInstallationLogic)
 {
     this.generalInstallationLogic  = generalInstallationLogic;
     this.existingInstallationLogic = existingInstallationLogic;
     this.knownSystemLogic          = knownSystemLogic;
     knownInstallationLogic         =
         new KnownInstallationLogic(SystemListStatics.RsisSystemList.GetInstallationById(existingInstallationLogic.RuntimeConfiguration.RsisInstallationId.Value));
     this.recognizedInstallationLogic = recognizedInstallationLogic;
 }
Exemplo n.º 5
0
        private static DevelopmentInstallation getInstallation(string path)
        {
            var generalInstallationLogic  = new GeneralInstallationLogic(path);
            var existingInstallationLogic = new ExistingInstallationLogic(generalInstallationLogic, new InstallationConfiguration(path, true));

            if (existingInstallationLogic.RuntimeConfiguration.RsisInstallationId.HasValue)
            {
                ConfigurationLogic.Init();
                SystemListStatics.RefreshSystemList();
                var knownSystemLogic = new KnownSystemLogic(
                    SystemListStatics.RsisSystemList.Systems.Single(
                        i => i.DevelopmentInstallationId == existingInstallationLogic.RuntimeConfiguration.RsisInstallationId.Value));
                var recognizedInstallationLogic = new RecognizedInstallationLogic(existingInstallationLogic, knownSystemLogic);
                return(new RecognizedDevelopmentInstallation(generalInstallationLogic, existingInstallationLogic, knownSystemLogic, recognizedInstallationLogic));
            }

            return(new UnrecognizedDevelopmentInstallation(generalInstallationLogic, existingInstallationLogic));
        }