private Engine() { LiquidSettings config = LiquidSettings.GetConfiguration(); if (config == null) return; _ConnectionString = config.ConnectionString; Type dataDelegateType = Type.GetType(config.DataDelegateTypeName); Type businessDelegateType = Type.GetType(config.BusinessDelegateTypeName); IDataDelegate dataDelegate = (IDataDelegate)Activator.CreateInstance(dataDelegateType); _Factory = new ServiceFactory(dataDelegate); _Delegate = (IBusinessDelegate)Activator.CreateInstance(businessDelegateType); }
internal void Initialize(IDataDelegate aDelegate, String aConnectionString) { _ConnectionString = aConnectionString; _Factory = new ServiceFactory(aDelegate); }