public IEnumerable <EmbeddedResourceItem> GetResources(string fullPath) { var encodedPath = EmbeddedResourcePathHelper.EncodeAsResourcesPath(fullPath); if (encodedPath.Length > 0 && !encodedPath.EndsWith(".")) { encodedPath = encodedPath + "."; } return(_resources.Value.Where(k => k.Key.StartsWith(encodedPath)).Select(d => d.Value)); }
public EmbeddedResourceItem GetResource(string fullPath) { var encodedPath = EmbeddedResourcePathHelper.EncodeAsResourcesPath(fullPath); return(_resources.Value.GetOrDefault(encodedPath)); }