Example #1
0
        public IDefinition Create(string id)
        {
            var definition = CreateDefinition(id);

            if (definition != null)
            {
                return(definition);
            }

            if (_successor != null)
            {
                definition = _successor.Create(id);

                if (definition != null)
                {
                    return(definition);
                }
            }

            throw new NotSupportedException(id);
        }