/// <inheritdoc />
        public override string GetDashboardContent(IConfigurationRequestContext context)
        {
            // Create a new dashboard that refreshes every 30 seconds.
            var dashboard = new StatusDashboard()
            {
                RefreshInterval = 30
            };

            // If there's some base content then add that.
            var baseContent = base.GetDashboardContent(context);

            if (false == string.IsNullOrWhiteSpace(baseContent))
            {
                dashboard.AddContent(new DashboardCustomContent(baseContent));
            }

            // Do we have any asynchronous operation content?
            var asynchronousOperationContent = this.GetAsynchronousOperationDashboardContent();

            if (null != asynchronousOperationContent)
            {
                dashboard.AddContent(asynchronousOperationContent);
            }

            // Return the dashboard.
            return(dashboard.ToString());
        }
Beispiel #2
0
        /// <inheritdoc />
        public override string GetDashboardContent(IConfigurationRequestContext context)
        {
            var dashboard = new StatusDashboard();

            dashboard.RefreshInterval = 30;

            // If there's some base content then add that.
            var baseContent = base.GetDashboardContent(context);

            if (false == string.IsNullOrWhiteSpace(baseContent))
            {
                dashboard.AddContent(new DashboardCustomContent(baseContent));
            }

            // Do we have any background operation content?
            var backgroundOperationContent = this.GetBackgroundOperationDashboardContent();

            if (null != backgroundOperationContent)
            {
                dashboard.AddContent(backgroundOperationContent);
            }

            // Return the dashboard.
            return(dashboard.ToString());
        }
Beispiel #3
0
        /// <inheritdoc />
        public override IEnumerable <CustomDomainCommand> GetCommands(IConfigurationRequestContext context)
        {
            // Return the base commands, if any.
            foreach (var c in base.GetCommands(context) ?? new CustomDomainCommand[0])
            {
                yield return(c);
            }

            // Return the command related to the background operation approach.
            foreach (var c in this.GetTaskQueueBackgroundOperationRunCommands())
            {
                yield return(c);
            }

            // Return the commands related to the VAF 2.3+ attribute-based approach.
            foreach (var c in this.TaskManager.GetTaskQueueRunCommands(this.TaskQueueResolver))
            {
                yield return(c);
            }
        }
 protected override void OnConfigurationUpdated(IConfigurationRequestContext context, ClientOperations clientOps, MyConfiguration oldConfiguration)
 {
     SysUtils.ReportInfoToEventLog($"Updated (simple) configuration is:\r\n{this.Configuration}");
 }