GetManifests() 공개 메소드

Get all registered manifests
public GetManifests ( ) : IEnumerable
리턴 IEnumerable
예제 #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();
     }));
 }
예제 #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();
         });
 }