I’ve finally developed it.
Previous version had a bug, which is fixed now.
I made it based on Microsoft Enterprise Library. You can use xml configuration files (.config) to handle this applicationblock. Be careful! You have to install Ent lib, before you use it.