/// <summary> /// This is the Obtain function. You can use it to get the cached/saved data. /// </summary> /// <param name="s">Type of the StaticFile that you want to retrieve from the cache.</param> public string Obtain(StaticFile s) { if (_map.TryGetValue(s, out var v)) { return(v); } log.Error(string.Format("Static file of type {0} not found/cached, returning nothing...", s.ToString())); return(""); }