예제 #1
0
 public ConsoleWorker(
     ConfigurationsProvider configurationsProvider,
     OctopusWorker octopusWorker)
 {
     this.configurationsProvider = configurationsProvider;
     this.octopusWorker          = octopusWorker;
 }
예제 #2
0
        public MainForm(
            string defaultPath,
            string defaultEnvironment,
            ConfigurationsProvider configurationsProvider,
            OctopusWorker octopusWorker,
            EnvironmentsProvider environmentsProvider)
        {
            InitializeComponent();
            selectedPathTb.Text     = defaultPath;
            this.defaultEnvironment = string.IsNullOrWhiteSpace(defaultEnvironment)
                ? Properties.Settings.Default.LastEnvironment ?? ""
                : defaultEnvironment;

            this.configurationsProvider = configurationsProvider;
            this.octopusWorker          = octopusWorker;
            this.environmentsProvider   = environmentsProvider;
        }