Looks like the initialization of the parameters part of the code execute only the first time I run the task. When I run the task again it just skip the initialization part. So I made a change in the settings it won't take effect.
Initialization code:
[assembly: RegisterCustomClass("CMPTask.YellowDogUpdate", typeof(CMPTask.YellowDogUpdate))]
namespace CMPTask
{
///
public class YellowDogUpdate : ITask
{
private static bool isTestMode = ValidationHelper.GetBoolean(SettingsKeyInfoProvider.GetValue("YDSandbox"), false);
private static string baseURL = (isTestMode) ? ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDBaseURLSandbox"), "") : ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDBaseURL"), "");
public static string username = (isTestMode) ? ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDUserNameSandbox"), "") : ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDUserName"), "");
public static string password = (isTestMode) ? ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDPassowrdSandbox"), "") : ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDPassowrd"), "");
public static string clientID = (isTestMode) ? ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDClientIDSandbox"), "") : ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("YDClientID"), "");
public static string webStoreID = ValidationHelper.GetString(SettingsKeyInfoProvider.GetValue("WebStoreID"), string.Empty);