Ejemplo n.º 1
0
        public PluginModule(ISchedulePluginsService pluginService)
        {
            this.RequiresAuthentication();

            Get["/plugin"] = x => {
                var list = pluginService.FindAll();
                return(View["/Jobs/Plugin", list]);
            };

            Get["/pluginsData"] = x =>
            {
                var list = pluginService.FindAll();
                return(Response.AsJson(list));
            };
        }
Ejemplo n.º 2
0
 public ScheduleTask(IScheduleJobsService jobsService, ISchedulePluginsService pluginService)
 {
     this.jobsService   = jobsService;
     this.pluginService = pluginService;
 }
Ejemplo n.º 3
0
 public PluginDomainInfo(string directory)
 {
     this.Directory = directory;
     Assemblies     = new List <string>();
     pluginService  = pluginService = GlobalUnityContainer.Resolve <ISchedulePluginsService>();
 }