Exemple #1
0
 /// <summary></summary>
 /// <param name="sp"></param>
 /// <param name="name"></param>
 public AcmeCronItem(IServiceProvider sp, string name)
     : base(sp, name)
 {
     certificateNotAfter   = new SimpleConfigItemProperty <DateTime>(this, "tw_acme_notafter", "NotAfter", CertificateCategory, "Not after date of the certificate.", "{0:G}", DateTime.MinValue);
     certificateThumbprint = new SimpleConfigItemProperty <string>(this, "tw_acme_thumbprint", "Thumbprint", CertificateCategory, "Thumbprint of the certificate.", null, null);
     certificateState      = new SimpleConfigItemProperty <string>(this, "tw_acme_state", "State", CertificateCategory, "State of the certificate process.", null, null);
 }         // ctor
        public PowerShellCronItem(IServiceProvider sp, string name)
            : base(sp, name)
        {
            this.powerShell = new DynamicPowerShell(this);

            powerShell.Progress += PowerShell_Progress;
            powerShell.ProgressCompleted += PowerShell_ProgressCompleted;

            activityProperty = new SimpleConfigItemProperty<string>(this, "tw_cron_psactivity", "1. Activity", ActivityCategory, "Current task in the script.", null, null);
            statusDescriptionProperty = new SimpleConfigItemProperty<string>(this, "tw_cron_psstatus", "2. Status Description", ActivityCategory, "Current status description.", null, null);
            progressProperty = new SimpleConfigItemProperty<string>(this, "tw_cron_psprogres", "3. Progress", ActivityCategory, "Current progress of the current operation.", null, null);
            currentOperationProperty = new SimpleConfigItemProperty<string>(this, "tw_cron_psoperation", "4. Current Operation", ActivityCategory, "Current operation.", null, null);
        }
Exemple #3
0
        /// <summary></summary>
        /// <param name="sp"></param>
        /// <param name="name"></param>
        public PowerShellCronItem(IServiceProvider sp, string name)
            : base(sp, name)
        {
            this.powerShell = new DynamicPowerShell(this);

            powerShell.Progress          += PowerShell_Progress;
            powerShell.ProgressCompleted += PowerShell_ProgressCompleted;

            activityProperty          = new SimpleConfigItemProperty <string>(this, "tw_cron_psactivity", "1. Activity", ActivityCategory, "Current task in the script.", null, null);
            statusDescriptionProperty = new SimpleConfigItemProperty <string>(this, "tw_cron_psstatus", "2. Status Description", ActivityCategory, "Current status description.", null, null);
            progressProperty          = new SimpleConfigItemProperty <string>(this, "tw_cron_psprogres", "3. Progress", ActivityCategory, "Current progress of the current operation.", null, null);
            currentOperationProperty  = new SimpleConfigItemProperty <string>(this, "tw_cron_psoperation", "4. Current Operation", ActivityCategory, "Current operation.", null, null);
        }         // ctor
Exemple #4
0
        /// <summary></summary>
        /// <param name="sp"></param>
        /// <param name="name"></param>
        public PpsApplication(IServiceProvider sp, string name)
            : base(sp, name)
        {
            initializationProgress = new SimpleConfigItemProperty <string>(this, "ppsn_init_progress", "Initialization", "Misc", "Show the current state of the initialization of the node.", null, "Pending");

            this.databaseLibrary = new PpsDatabaseLibrary(this);
            this.objectsLibrary  = new PpsObjectsLibrary(this);
            this.reportProvider  = new PpsServerReportProvider(this);

            // register shortcut for text
            LuaType.RegisterTypeAlias("text", typeof(PpsFormattedStringValue));
            LuaType.RegisterTypeAlias("blob", typeof(byte[]));
            LuaType.RegisterTypeAlias("geography", typeof(Microsoft.SqlServer.Types.SqlGeography));

            PublishItem(clientApplicationInfos = new DEList <PpsClientApplicationInfo>(this, "tw_client_infos", "Client applications"));

            InitUser();
        }         // ctor