private static void Parse()
{
var collection = System.Configuration.ConfigurationManager.GetSection(SECTIONNAME) as System.Collections.Specialized.NameValueCollection;
if (collection == null)
{
ParseEnabled(null);
ParseTimerInterval(null);
ImmediatelyEnabled = true;
DailyEnabled = true;
WeeklyEnabled = true;
MonthlyEnabled = true;
ParseDaily(null);
ParseWeekly(null);
ParseMonthly(null);
ParseSenderAddress(null);
ParseRetryCount(null);
ParseRetryDelay(null);
ParseTakeCount(null);
ParseEncoding(null);
}
else
{
ParseEnabled(collection.Get(ENABLEDKEY));
ParseTimerInterval(collection.Get(TIMERINTERVALKEY));
ParseImmediately(collection.Get(IMMEDIATELYKEY));
ParseDaily(collection.Get(DAILYKEY));
ParseWeekly(collection.Get(WEEKLYKEY));
ParseMonthly(collection.Get(MONTHLYKEY));
ParseSenderAddress(collection.Get(SENDERADDRESSKEY));
ParseRetryCount(collection.Get(RETRYCOUNT));
ParseRetryDelay(collection.Get(RETRYDELAY));
ParseTakeCount(collection.Get(TAKECOUNT));
ParseEncoding(collection.Get(MESSAGEENCODING));
}
}