Exemplo n.º 1
0
        public void Process(StartPageTestArgs args)
        {
            if (args == null) return;
            var publications = _service.GetApplicablePublications(new Guid(Constants.PipelineEventIds.PageTestStarted));
            if (!publications.Any())
                return;

            foreach (var publication in publications)
            {
                foreach (var channel in publication.GetChannels())
                {
                    _message.Text = $"Content test started for {args.HostItem.Paths.Path}.";
                    _message.UpdateChannelInfo(channel, publication);
                    _service.PublishMessage(_message);
                }
            }
        }
        public void Process(StartPageTestArgs args)
        {
            if (args == null)
            {
                return;
            }
            var publications = _service.GetApplicablePublications(new Guid(Constants.PipelineEventIds.PageTestStarted));

            if (!publications.Any())
            {
                return;
            }

            foreach (var publication in publications)
            {
                foreach (var channel in publication.GetChannels())
                {
                    _message.Text = $"Content test started for {args.HostItem.Paths.Path}.";
                    _message.UpdateChannelInfo(channel, publication);
                    _service.PublishMessage(_message, true);
                }
            }
        }