public override IEnumerable <IDestination> DynamicDestinations()
        {
            var currentPages = ConfluenceUtils.GetCurrentPages(null).Result;

            if (currentPages == null || currentPages.Count == 0)
            {
                yield break;
            }
            foreach (var currentPage in currentPages)
            {
                yield return(new ConfluenceDestination(CoreConfiguration, GreenshotLanguage, _confluenceConfiguration, _confluenceLanguage, _pleaseWaitFormFactory, currentPage));
            }
        }
Example #2
0
        public override IEnumerable <IDestination> DynamicDestinations()
        {
            if (_confluenceConnector == null || !_confluenceConnector.IsLoggedIn)
            {
                yield break;
            }
            var currentPages = ConfluenceUtils.GetCurrentPages(_confluenceConnector);

            if (currentPages == null || currentPages.Count == 0)
            {
                yield break;
            }
            foreach (var currentPage in currentPages)
            {
                yield return(new ConfluenceDestination(_confluenceConfiguration, _coreConfiguration, _confluenceConnector, currentPage));
            }
        }