Exemplo n.º 1
0
 public GlooServer(BamConf conf, ILogger logger, bool verbose = false)
     : base(new GlooResponder(conf, logger, verbose), logger)
 {
     Responder.Initialize();
     CreatedOrChangedHandler = (o, fsea) =>
     {
         ReloadServices(fsea);
     };
     RenamedHandler = (o, rea) =>
     {
         DirectoryInfo dir = GetDirectory(rea.FullPath);
         if (dir != null)
         {
             TryReloadServices(dir);
         }
     };
     ServiceTypes = new HashSet <Type>();
 }
Exemplo n.º 2
0
 private void Init()
 {
     Responder.Initialize();
     CreatedOrChangedHandler = ReloadFile;
 }