Exemple #1
0
        public void Resolve()
        {
            if (of == null && OfName != null)
            {
                var elem = From.find(OfName);

                if (elem == null)
                {
                    logger.Error("Error, unable to resolve binding '" + OfName + "' attached to '" + From.fullName + "'.");
                }
                else if (From.CommonParent(elem) is Choice)
                {
                    logger.Error("Error, binding '" + OfName + "' attached to '" + From.fullName + "' cannot share a common parent that is of type 'Choice'.");
                }
                else
                {
                    SetOf(elem);
                }
            }
        }