Esempio n. 1
0
        private ISsrsObjectSource GetObjectSource()
        {
            if (!ArgumentList.Any())
            {
                throw new InvalidArgumentsException("No object source specified.");
            }

            var sourceFactory = new ObjectSourceFactory()
            {
                ReportingServiceClientFactory = ReportingServiceClientFactory, BasePath = BasePath
            };

            return(sourceFactory.Create(ArgumentList));
        }
Esempio n. 2
0
        public override void Parse(ArgumentList argumentList, Dictionary <string, dynamic> parsedArgs)
        {
            string key   = Name.TrimStart('-');
            var    value = new List <string>();

            parsedArgs[key] = value;
            argumentList.DropOne();
            while (argumentList.Any())
            {
                var v = argumentList.Peek();
                if (v.StartsWith("-"))
                {
                    break;
                }
                value.Add(v);
                argumentList.DropOne();
            }
        }