GetManifests() public method

Get all registered manifests
public GetManifests ( ) : IEnumerable
return IEnumerable
Example #1
0
 /// <summary>
 /// Ensures the manifests are found and loaded into memory
 /// </summary>
 private static IEnumerable <PackageManifest> GetManifests()
 {
     return((IEnumerable <PackageManifest>)StaticCache.GetOrAdd(ManifestKey, s =>
     {
         var parser = new ManifestParser(new DirectoryInfo(IOHelper.MapPath("~/App_Plugins")));
         return parser.GetManifests();
     }));
 }
Example #2
0
 /// <summary>
 /// Ensures the manifests are found and loaded into memory
 /// </summary>
 private static IEnumerable<PackageManifest> GetManifests()
 {
     return (IEnumerable<PackageManifest>) StaticCache.GetOrAdd(ManifestKey, s =>
         {
             var parser = new ManifestParser(new DirectoryInfo(IOHelper.MapPath("~/App_Plugins")));
             return parser.GetManifests();
         });
 }