public static IEnumerable<IRequestData> For(IRequestData data, string prefix)
        {
            var indexer = new Indexer(prefix);

            while (data.HasChildRequest(indexer.Prefix))
            {
                yield return data.GetChildRequest(indexer.Prefix);
                indexer.Increment();
            }
        }
Example #2
0
        public static IEnumerable <IRequestData> For(IRequestData data, string prefix)
        {
            var indexer = new Indexer(prefix);

            while (data.HasChildRequest(indexer.Prefix))
            {
                yield return(data.GetChildRequest(indexer.Prefix));

                indexer.Increment();
            }
        }
Example #3
0
        public IRequestData GetChildRequest(string prefixOrChild)
        {
            var prefixedInner = _inner.GetChildRequest(prefixOrChild);

            return(new SubstitutedRequestData(prefixedInner, _substitutions));
        }
Example #4
0
 public IRequestData GetSubRequest(string name)
 {
     return(_requestData.GetChildRequest(name));
 }