Exemplo n.º 1
0
 public override void Start()
 {
     if (MonitorDirectories.Length > 0)
     {
         ServiceTypes.Clear();
         MonitorDirectories.Each(new { Server = this }, (ctx, dir) =>
         {
             ctx.Server.TryReloadServices(new DirectoryInfo(dir));
         });
     }
     else
     {
         RegisterServiceTypes();
     }
     base.Start();
 }