protected void ResgistSeajsFiles(IApplicationBus bus)
 {
     foreach (SeajsModel model in _seajsEmbeddedModulePath)
     {
         string str = string.Format("{0}/{1}", _context.AreaName, model.BundleNamee);
         string[] strArray =
             AssemblyResourceManager.GetResourceStoreForArea(_context.AreaName)
                 .MatchPath("~/" + model.FilePath, ".js");
         if ((strArray == null) || (strArray.Length == 0))
         {
             throw new FileNotFoundException(string.Format("Not found an embed js file in {0}", str));
         }
         foreach (string str2 in strArray)
         {
             var bundle = new SeajsEmbedBundle(string.Format("~/{0}/{1}", str, str2), _context.AreaName,
                 OrnamentContext.Configuration.GetSeajsCombine());
             if (model.BundleNamee != model.FilePath)
             {
                 string virtualPath = string.Format("~/areas/{0}/{1}/{2}", _context.AreaName, model.FilePath,
                     str2);
                 bundle=(SeajsEmbedBundle)bundle.Include(virtualPath);
             }
             var eventMessage = new SeajsModuleBundleEventMessage(bundle);
             bus.Send(eventMessage);
         }
     }
 }
 public SeajsModuleBundleEventMessage(SeajsEmbedBundle bundle)
 {
     Bundle = bundle;
 }