Ejemplo n.º 1
0
        private void LoadConfig(Log4GridSection section)
        {
            mManagement = (Interfaces.IAppManagement)Activator.CreateInstance(Type.GetType(section.Management.Type));
            LoadProperties(mManagement, section.Management.Properties);

            mStore = (Interfaces.ILogStoreHandler)Activator.CreateInstance(Type.GetType(section.LogStore.Type));
            LoadProperties(mStore, section.LogStore.Properties);

            mSearch = (Interfaces.ILogSearchHandler)Activator.CreateInstance(Type.GetType(section.LogSearch.Type));
            LoadProperties(mSearch, section.LogSearch.Properties);

            mUser = (Interfaces.IUserManagement)Activator.CreateInstance(Type.GetType(section.User.Type));
            LoadProperties(mUser, section.User.Properties);
        }
Ejemplo n.º 2
0
        private void LoadConfig(Log4GridSection section)
        {
            mManagement = (Interfaces.IAppManagement)Activator.CreateInstance(Type.GetType(section.Management.Type));
            LoadProperties(mManagement, section.Management.Properties);

            mStore = (Interfaces.ILogStoreHandler)Activator.CreateInstance(Type.GetType(section.LogStore.Type));
            LoadProperties(mStore, section.LogStore.Properties);

            mSearch = (Interfaces.ILogSearchHandler)Activator.CreateInstance(Type.GetType(section.LogSearch.Type));
            LoadProperties(mSearch, section.LogSearch.Properties);

            mUser = (Interfaces.IUserManagement)Activator.CreateInstance(Type.GetType(section.User.Type));
            LoadProperties(mUser, section.User.Properties);
        }