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();
        }
Ejemplo n.º 2
0
        protected override void ConfigureObjectCollector()
        {
            if (base.ObjectCollector == null)
            {
                var SSHExec = ((SSHConnectionProvider)ConnectionProvider).SSHExec;
                var newEnvironVarCollector = new EnvironmentVariableCollector() { SSHExec = SSHExec };

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

            if (base.ItemTypeGenerator == null)
                base.ItemTypeGenerator = new EnvironmentVariableItemTypeGenerator();
        }
 private void CreateEnvironmentVariablesCollectorInstance()
 {
     if (this.EnvironmentVariablesCollector == null)
         this.EnvironmentVariablesCollector = new EnvironmentVariableCollector();
 }