Esempio n. 1
0
        private TaskResult Execute(NuGetConfigureParameters data)
        {
            if (data.Path != null)
            {
                NuGetConfiguration.Instance.Path = data.Path;
            }

            return(TaskResult.Successful);
        }
Esempio n. 2
0
        public ITask Execute(Action <NuGetConfigureParameters> parameters)
        {
            return(new NuGetConfigureTask(() =>
            {
                NuGetConfigureParameters instance = new NuGetConfigureParameters
                {
                    Path = NuGetConfiguration.Instance.Path
                };

                parameters(instance);
                return instance;
            }));
        }