Пример #1
0
        public object Get(IFormatReader parameter)
        {
            var adapter = _activator.Get(parameter);

            while (adapter?.MoveNext() ?? false)
            {
                _content.Execute(adapter);
            }
            var result = adapter != null?_result.Get(adapter) : null;

            return(result);
        }
            public IInnerContent Get(IFormatReader parameter)
            {
                var monitor = new ConditionMonitor();

                if (_apply)
                {
                    monitor.Apply();
                }

                var result = new InnerContent(_activator.Get(parameter), monitor);

                return(result);
            }
        public object Get(IFormatReader parameter)
        {
            var content = _activator.Get(parameter);

            if (content != null)
            {
                while (content.MoveNext())
                {
                    _content.IsSatisfiedBy(content);
                }

                var result = _result.Get(content);
                return(result);
            }

            return(null);
        }
 public IInnerContent Get(IFormatReader parameter) => new InnerContent(_activator.Get(parameter), _apply);