Esempio n. 1
0
        public static Object CreateInstance(string type)
        {
            string theServerLocation          = ((NameValueCollection)ConfigurationManager.GetSection("appSettings"))["ServerLocation"];
            IBusinessServerFactory theFactory = (IBusinessServerFactory)Activator.GetObject(Type.GetType("Application.Interface.IBusinessServerFactory, Application.Interface"), theServerLocation);

            return(theFactory.CreateInstance(type));
        }
Esempio n. 2
0
        public static Object CreateInstance(string type)
        {
            string theServerLocation          = ConfigurationManager.AppSettings.Get("ServerLocation");
            IBusinessServerFactory theFactory = (IBusinessServerFactory)Activator.GetObject(Type.GetType("Application.Interface.IBusinessServerFactory, Application.Interface"), theServerLocation);

            return(theFactory.CreateInstance(type));
        }