Skip to content

Instantly share code, notes, and snippets.

@hasayvaz
Last active December 10, 2015 09:18
Show Gist options
  • Save hasayvaz/4413000 to your computer and use it in GitHub Desktop.
Save hasayvaz/4413000 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="LibrarySetting" type="LibraryConfigUtilities.ConfigurationSectionHandler, LibraryConfigUtilities" />
</configSections>
<!-- Description,
Culture : string, valid to construct a CultureInfo object
Currency : string, ISO code of currency makes sense.
DailyPenaltyFee : Decimal, will be used in penalty fee calculation.
PenaltyAppliesAfter : int, number of days that the penalty fee will occur after.
e.g. according to this configuration for "tr-TR";
penalty fee for 1,2,3 business day(s) will be 0.00, for 4 business days it will be 5.00 TRY
WeekendSetting/Weekend/Day : Setting for weekend, must be castable to DayOfWeek enum (0:Sunday - 6:Saturday)
HolidaySetting/Holiday/Date : Setting for national holidays, must be a date string, formatted according to culture .
-->
<LibrarySetting>
<Country Culture="tr-TR" Currency="TRY" DailyPenaltyFee="5,25" PenaltyAppliesAfter="3">
<WeekendSetting>
<Weekend Day="6"/>
<Weekend Day="0"/>
</WeekendSetting>
<HolidaySetting>
<Holiday Date="25.11.2009"/>
<Holiday Date="26.11.2009"/>
<Holiday Date="27.11.2009"/>
</HolidaySetting>
</Country>
<Country Culture="ar-AE" Currency="AED" DailyPenaltyFee="8.00" PenaltyAppliesAfter="4">
<WeekendSetting>
<Weekend Day="5"/>
<Weekend Day="6"/>
</WeekendSetting>
<HolidaySetting>
<Holiday Date="25.11.2009"/>
<Holiday Date="26.11.2009"/>
<Holiday Date="27.11.2009"/>
</HolidaySetting>
</Country>
</LibrarySetting>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment