public CrystalQuartzPanelMiddleware(
            OwinMiddleware next,
            ISchedulerProvider schedulerProvider,
            Options options) : base(next)
        {
            Application application = new CrystalQuartzPanelApplication(schedulerProvider, options);

            _runningApplication = application.Run();
        }
        public CrystalQuartzPanelMiddleware(
            RequestDelegate next,
            ISchedulerProvider schedulerProvider,
            Options options)
        {
            _next = next;

            var application = new CrystalQuartzPanelApplication(schedulerProvider, options);

            _runningApplication = application.Run();
        }
        public CrystalQuartzPanelMiddleware(
            OwinMiddleware next,
            ISchedulerProvider schedulerProvider,
            CrystalQuartzOptions options) : base(next)
        {
            Application application = new CrystalQuartzPanelApplication(
                schedulerProvider,
                new DefaultSchedulerDataProvider(schedulerProvider),
                options);

            this.options        = options;
            _runningApplication = application.Run();
        }
Esempio n. 4
0
        static PagesHandler()
        {
            var options = new CrystalQuartzOptions
            {
                CustomCssUrl = Configuration.ConfigUtils.CustomCssUrl
            };

            ISchedulerProvider schedulerProvider = Configuration.ConfigUtils.SchedulerProvider;
            ISchedulerDataProvider schedulerDataProvider = new DefaultSchedulerDataProvider(schedulerProvider);

            Application application = new CrystalQuartzPanelApplication(
                schedulerProvider,
                schedulerDataProvider,
                options);

            RunningApplication = application.Run();
        }