Ejemplo n.º 1
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            if (CmdSite == null || CmdPortal == null)
            {
                return;
            }
            ;
            WriteVerbose(string.Format("list-tasks on {0} portal {1}", CmdSite.Url, CmdPortal.PortalId));
            var response = TaskSchedulerCommands.ListTasks(CmdSite, CmdPortal.PortalId, Enabled, TaskName);

            WriteArray(response);
        }
Ejemplo n.º 2
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();
            if (CmdSite == null || CmdPortal == null)
            {
                return;
            }
            ;
            WriteVerbose(string.Format("get-task on {0} portal {1}", CmdSite.Url, CmdPortal.PortalId));
            var response = TaskSchedulerCommands.GetTask(CmdSite, CmdPortal.PortalId, TaskId);

            WriteObject(response);
        }