Ejemplo n.º 1
0
 public void Load()
 {
     if (Log != null)
     {
         Log.Info("Tracker Factory Tracker Loding...");
     }
     foreach (string item in System.IO.Directory.GetDirectories(mTrackerPath))
     {
         System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(item);
         if (!mDomains.ContainsKey(info.Name))
         {
             Glue4Net.DomainArgs args = new Glue4Net.DomainArgs();
             args.Compiler    = true;
             args.UpdateWatch = true;
             args.WatchFilter = new string[] { "*.dll", "*.xml", "*.config", ".ini" };
             Glue4Net.DomainAdapter domain = new Glue4Net.DomainAdapter(item, info.Name, args);
             domain.Log          = Log;
             mDomains[info.Name] = domain;
             if (Log != null)
             {
                 Log.Info("Created Tracker {0} Path:{1}", info.Name, item);
             }
         }
     }
 }
Ejemplo n.º 2
0
        public void Load()
        {
            if (Log != null)
                Log.Info("Tracker Factory Tracker Loding...");
            foreach (string item in System.IO.Directory.GetDirectories(mTrackerPath))
            {


                System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(item);
                if (!mDomains.ContainsKey(info.Name))
                {
                    Glue4Net.DomainArgs args = new Glue4Net.DomainArgs();
                    args.Compiler = true;
                    args.UpdateWatch = true;
                    args.WatchFilter = new string[] { "*.dll", "*.xml", "*.config", ".ini" };
                    Glue4Net.DomainAdapter domain = new Glue4Net.DomainAdapter(item, info.Name, args);
                    domain.Log = Log;
                    mDomains[info.Name] = domain;
                    if (Log != null)
                        Log.Info("Created Tracker {0} Path:{1}", info.Name, item);
                }
            }
        }