/// <summary> /// Abstracts the creation of an instance of ICombinerService /// </summary> /// <returns></returns> public static ICombinerService CreateCombinerService() { var logger = new LoggingService.LoggingService(); var cacheService = new CacheService.CacheService(logger); var minifier = new ResourceMinifier(); var myCombiner = new LongUrlCombinerService(cacheService, minifier, logger); //ObjectFactory.GetInstance<ICombinerService>(); return(myCombiner); }
static void InitializeStaticMembers(Type stronglyTypedSettingsObjType, string liveSettingsFileName) { try { if (HttpContext.Current != null) { liveSettingsFileName = HttpContext.Current.Server.MapPath(liveSettingsFileName); } // Initialize properties who derive their values from a live settings file ICacheService cache = new CacheService.CacheService(Logger); var service = new LiveSettingsService.LiveSettingsService(cache); //ObjectFactory.GetInstance<ILiveSettingsService>(); service.InitializeSettingsForFile(stronglyTypedSettingsObjType, liveSettingsFileName); } catch (Exception e) { Logger.Error("Combiner Live Settings File not found. Exception: " + e.Message); } }