Beispiel #1
0
 private void CreateEnvironmentVariablesCollectorInstance()
 {
     if (this.EnvironmentVariablesCollector == null)
     {
         this.EnvironmentVariablesCollector = new EnvironmentVariableCollector();
     }
 }
        protected override void ConfigureObjectCollector()
        {
            if (base.ObjectCollector == null)
            {
                var sshCommandRunner       = ((SSHConnectionProvider)ConnectionProvider).SshCommandLineRunner;
                var newEnvironVarCollector = new EnvironmentVariableCollector()
                {
                    CommandRunner = sshCommandRunner
                };

                base.ObjectCollector =
                    new EnvironmentVariableObjectCollector()
                {
                    EnvironmentVariablesCollector = newEnvironVarCollector
                };
            }

            if (base.ItemTypeGenerator == null)
            {
                base.ItemTypeGenerator = new EnvironmentVariableItemTypeGenerator();
            }
        }