Exemplo n.º 1
0
        /// <summary>
        /// Initializes the setup object.
        /// </summary>
        /// <param name="WebServer">Current Web Server object.</param>
        public override Task InitSetup(HttpServer WebServer)
        {
            WebServer.Register(this.exportFolder               = new HttpFolderResource("/Export", Export.FullExportFolder, false, false, false, true, Gateway.LoggedIn));
            WebServer.Register(this.keyFolder                  = new HttpFolderResource("/Key", Export.FullKeyExportFolder, false, false, false, true, Gateway.LoggedIn));
            WebServer.Register(this.startExport                = new StartExport());
            WebServer.Register(this.startAnalyze               = new StartAnalyze());
            WebServer.Register(this.deleteExport               = new DeleteExport());
            WebServer.Register(this.updateBackupSettings       = new UpdateBackupSettings());
            WebServer.Register(this.updateBackupFolderSettings = new UpdateBackupFolderSettings());

            return(base.InitSetup(WebServer));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the setup object.
        /// </summary>
        /// <param name="WebServer">Current Web Server object.</param>
        public override Task InitSetup(HttpServer WebServer)
        {
            HttpAuthenticationScheme Auth = Gateway.LoggedIn(this.ConfigPrivilege);

            WebServer.Register(this.exportFolder               = new HttpFolderResource("/Export", Export.FullExportFolder, false, false, false, true, HostDomainOptions.SameForAllDomains, Auth));
            WebServer.Register(this.keyFolder                  = new HttpFolderResource("/Key", Export.FullKeyExportFolder, false, false, false, true, HostDomainOptions.SameForAllDomains, Auth));
            WebServer.Register(this.startExport                = new StartExport());
            WebServer.Register(this.startAnalyze               = new StartAnalyze());
            WebServer.Register(this.deleteExport               = new DeleteExport());
            WebServer.Register(this.updateBackupSettings       = new UpdateBackupSettings());
            WebServer.Register(this.updateBackupFolderSettings = new UpdateBackupFolderSettings());

            return(base.InitSetup(WebServer));
        }