static TypeDiscovery() { myBinFolder = SmartLocation.GetBinFolder(); myConfig = Container.Resolve <TypeDiscoveryConfig>(); myFilesToExclude = new List <string>(); var exclude = new List <string>(); if (myConfig.Exclude == null) { return; } myConfig.Exclude.ForEach(e => exclude.AddRange(Directory.GetFiles(myBinFolder, e))); myFilesToExclude = exclude.Distinct().ToList(); }
/// <summary> /// Static inline version of the <see cref="Location"/> property /// </summary> /// <param name="rawLocation">The "raw" location</param> /// <returns>The resolved location consistent for the application context/environment</returns> public static string GetLocation(string rawLocation) { var sl = new SmartLocation(rawLocation); return(sl.Location); }