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();
            }
        }
Пример #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();
            }
        }
Пример #3
0
        public IRequestData GetChildRequest(string prefixOrChild)
        {
            var prefixedInner = _inner.GetChildRequest(prefixOrChild);

            return(new SubstitutedRequestData(prefixedInner, _substitutions));
        }
Пример #4
0
 public IRequestData GetSubRequest(string name)
 {
     return(_requestData.GetChildRequest(name));
 }