static bool CheckRequiredFields()
{
var appConfig = ConfigurationManager.AppSettings;
if (string.IsNullOrEmpty(appConfig["AWSProfileName"]))
{
Console.WriteLine("AWSProfileName was not set in the App.config file.");
return false;
}
if (string.IsNullOrEmpty(senderAddress))
{
Console.WriteLine("The variable senderAddress is not set.");
return false;
}
if (string.IsNullOrEmpty(receiverAddress))
{
Console.WriteLine("The variable receiverAddress is not set.");
return false;
}
return true;
}
}