Esempio n. 1
0
        internal static Configurations GetInstance(XmlDocument appConfig)
        {
            Debug.Assert(appConfig != null, "AppConfig is null");

            IAppDataAdapter dataAdapter = new XmlDataAdapter(appConfig);

            dataAdapter.Validate();

            Configurations configurations = dataAdapter.LoadConfigs();

            return(configurations);
        }
Esempio n. 2
0
        internal static Dependencies GetInstance(XmlDocument appConfig)
        {
            Debug.Assert(appConfig != null, "AppConfig is null");

            Dependencies    _dependencies = null;
            IAppDataAdapter dataAdapter   = new XmlDataAdapter(appConfig);

            dataAdapter.Validate();

            _dependencies = dataAdapter.LoadDependencies();

            return(_dependencies);
        }
Esempio n. 3
0
        internal static IApplicationInfo GetInstance(XmlDocument appConfig)
        {
            Debug.Assert(appConfig != null, "AppConfig is null");

            IApplicationInfo _application;

            IAppDataAdapter dataAdapter = new XmlDataAdapter(appConfig);

            dataAdapter.Validate();

            _application = dataAdapter.Load();

            return(_application);
        }